Package | Description |
---|---|
cn.hutool.http |
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
|
Modifier and Type | Method and Description |
---|---|
GlobalInterceptor |
GlobalInterceptor.addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
GlobalInterceptor |
GlobalInterceptor.addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor)
设置拦截器,用于在响应读取后完成编辑或读取
|
GlobalInterceptor |
GlobalInterceptor.clear()
清空请求和响应拦截器
|
GlobalInterceptor |
GlobalInterceptor.clearRequest()
清空请求拦截器
|
GlobalInterceptor |
GlobalInterceptor.clearResponse()
清空响应拦截器
|
static GlobalInterceptor |
GlobalInterceptor.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalInterceptor[] |
GlobalInterceptor.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2024. All rights reserved.