| 程序包 | 说明 |
|---|---|
| cn.hutool.http |
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
|
| 限定符和类型 | 方法和说明 |
|---|---|
GlobalInterceptor |
GlobalInterceptor.addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
GlobalInterceptor |
GlobalInterceptor.addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
GlobalInterceptor |
GlobalInterceptor.addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor)
设置拦截器,用于在响应读取后完成编辑或读取
|
GlobalInterceptor |
GlobalInterceptor.addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor)
设置拦截器,用于在响应读取后完成编辑或读取
|
GlobalInterceptor |
GlobalInterceptor.clear()
清空请求和响应拦截器
|
GlobalInterceptor |
GlobalInterceptor.clear()
清空请求和响应拦截器
|
GlobalInterceptor |
GlobalInterceptor.clearRequest()
清空请求拦截器
|
GlobalInterceptor |
GlobalInterceptor.clearRequest()
清空请求拦截器
|
GlobalInterceptor |
GlobalInterceptor.clearResponse()
清空响应拦截器
|
GlobalInterceptor |
GlobalInterceptor.clearResponse()
清空响应拦截器
|
static GlobalInterceptor |
GlobalInterceptor.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static GlobalInterceptor |
GlobalInterceptor.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static GlobalInterceptor[] |
GlobalInterceptor.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
static GlobalInterceptor[] |
GlobalInterceptor.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
Copyright © 2023. All rights reserved.