- get(String) - Static method in enum cn.hutool.http.ContentType
-
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
1. application/json
1. application/xml
- get(URI) - Method in class cn.hutool.http.cookie.ThreadLocalCookieStore
-
- get(String) - Static method in class cn.hutool.http.HttpRequest
-
GET请求
- get(String, Charset) - Static method in class cn.hutool.http.HttpUtil
-
发送get请求
- get(String) - Static method in class cn.hutool.http.HttpUtil
-
发送get请求
- get(String, int) - Static method in class cn.hutool.http.HttpUtil
-
发送get请求
- get(String, Map<String, Object>) - Static method in class cn.hutool.http.HttpUtil
-
发送get请求
- get(String, Map<String, Object>, int) - Static method in class cn.hutool.http.HttpUtil
-
发送get请求
- getAddress() - Method in class cn.hutool.http.server.SimpleServer
-
获取服务器地址信息
- getAttribute(String) - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getBody() - Method in class cn.hutool.http.server.HttpServerRequest
-
- getBody(Charset) - Method in class cn.hutool.http.server.HttpServerRequest
-
获取请求体文本,可以是form表单、json、xml等任意内容
- getBodyBytes() - Method in class cn.hutool.http.server.HttpServerRequest
-
获取body的bytes数组
- getBodyStream() - Method in class cn.hutool.http.server.HttpServerRequest
-
获取请求体的流,流中可以读取请求内容,包括请求表单数据或文件上传数据
- getBoundary() - Static method in class cn.hutool.http.HttpGlobalConfig
-
获取全局默认的Multipart边界
- getBrowser() - Method in class cn.hutool.http.useragent.UserAgent
-
获取浏览器类型
- getCharset() - Method in class cn.hutool.http.HttpConnection
-
获取字符集编码
从Http连接的头信息中获得字符集
从ContentType中获取
- getCharset(HttpURLConnection) - Static method in class cn.hutool.http.HttpUtil
-
从Http连接的头信息中获得字符集
从ContentType中获取
- getCharset(String) - Static method in class cn.hutool.http.HttpUtil
-
从Http连接的头信息中获得字符集
从ContentType中获取
- getCharset() - Method in class cn.hutool.http.server.HttpServerRequest
-
获取编码,获取失败默认使用UTF-8,获取规则如下:
1、从Content-Type头中获取编码,类似于:text/html;charset=utf-8
- getCharsetName() - Method in class cn.hutool.http.HttpConnection
-
获得字符集编码
从Http连接的头信息中获得字符集
从ContentType中获取
- getClientIP(String...) - Method in class cn.hutool.http.server.HttpServerRequest
-
获取客户端IP
默认检测的Header:
1、X-Forwarded-For
2、X-Real-IP
3、Proxy-Client-IP
4、WL-Proxy-Client-IP
otherHeaderNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getClientIPByHeader(String...) - Method in class cn.hutool.http.server.HttpServerRequest
-
获取客户端IP
headerNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getConnection() - Method in class cn.hutool.http.HttpRequest
-
- getContentType() - Method in class cn.hutool.http.body.MultipartBody
-
获取Multipart的Content-Type类型
- getContentType() - Method in class cn.hutool.http.HttpResource
-
获取自定义Content-Type类型
- getContentType() - Method in class cn.hutool.http.server.HttpServerRequest
-
获取Content-Type头信息
- getContentTypeByRequestBody(String) - Static method in class cn.hutool.http.HttpUtil
-
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
1. application/json
1. application/xml
- getCookie(String) - Method in class cn.hutool.http.HttpResponse
-
获取Cookie
- getCookie(String) - Method in class cn.hutool.http.server.HttpServerRequest
-
获得指定Cookie名对应的HttpCookie对象
- getCookieManager() - Static method in class cn.hutool.http.cookie.GlobalCookieManager
-
- getCookieManager() - Static method in class cn.hutool.http.HttpGlobalConfig
-
获取Cookie管理器,用于自定义Cookie管理
- getCookieManager() - Static method in class cn.hutool.http.HttpRequest
-
获取Cookie管理器,用于自定义Cookie管理
- getCookieMap() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得Cookie信息Map,键为Cookie名,值为HttpCookie对象
- getCookies(HttpConnection) - Static method in class cn.hutool.http.cookie.GlobalCookieManager
-
获取指定域名下所有Cookie信息
- getCookies() - Method in class cn.hutool.http.cookie.ThreadLocalCookieStore
-
- getCookies() - Method in class cn.hutool.http.HttpResponse
-
获取Cookie
- getCookies() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得Cookie信息列表
- getCookiesStr() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得Cookie信息字符串
- getCookieStore() - Method in class cn.hutool.http.cookie.ThreadLocalCookieStore
-
获取本线程下的CookieStore
- getCookieStr() - Method in class cn.hutool.http.HttpResponse
-
获取本次请求服务器返回的Cookie信息
- getCookieValue(String) - Method in class cn.hutool.http.HttpResponse
-
获取Cookie值
- getDefaultCipherSuites() - Method in class cn.hutool.http.ssl.CustomProtocolsSSLFactory
-
- getEngine() - Method in class cn.hutool.http.useragent.UserAgent
-
获取引擎类型
- getEngineVersion() - Method in class cn.hutool.http.useragent.UserAgent
-
获取引擎版本
- getErrorStream() - Method in class cn.hutool.http.HttpConnection
-
当返回错误代码时,获得错误内容流
- getFileNameFromDisposition() - Method in class cn.hutool.http.HttpResponse
-
从Content-Disposition头中获取文件名
- getFileNameFromDisposition(String) - Method in class cn.hutool.http.HttpResponse
-
从Content-Disposition头中获取文件名,以参数名为`filename`为例,规则为:
首先按照RFC5987规范检查`filename*`参数对应的值,即:`filename*="example.txt"`,则获取`example.txt`
如果找不到`filename*`参数,则检查`filename`参数对应的值,即:`filename="example.txt"`,则获取`example.txt`
按照规范,`Content-Disposition`可能返回多个,此处遍历所有返回头,并且`filename*`始终优先获取,即使`filename`存在并更靠前。
- getHeader(Header) - Method in class cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeader(String) - Method in class cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeader(String, Charset) - Method in class cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeaders() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeaders() - Method in class cn.hutool.http.server.HttpServerResponse
-
获得所有响应头,获取后可以添加新的响应头
- getHttpContext() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getHttpContext() - Method in class cn.hutool.http.server.HttpServerBase
-
获取HttpContext
- getHttpExchange() - Method in class cn.hutool.http.server.HttpServerBase
-
获取HttpExchange对象
- getHttpURLConnection() - Method in class cn.hutool.http.HttpConnection
-
获取HttpURLConnection对象
- getInputStream() - Method in class cn.hutool.http.HttpConnection
-
获得输入流对象
输入流对象用于读取数据
- getLocalAddress() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getMaxRedirectCount() - Static method in class cn.hutool.http.HttpGlobalConfig
-
获取全局默认的最大重定向次数,如设置0表示不重定向
如果设置为1,表示重定向一次,即请求两次
- getMessage() - Method in class cn.hutool.http.webservice.SoapClient
-
- getMethod() - Method in class cn.hutool.http.HttpConnection
-
获取请求方法,GET/POST
- getMethod() - Method in class cn.hutool.http.HttpRequest
-
获取Http请求方法
- getMethod() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得Http Method
- getMethodEle() - Method in class cn.hutool.http.webservice.SoapClient
-
获取方法节点
用于创建子节点等操作
- getMimeType(String, String) - Static method in class cn.hutool.http.HttpUtil
-
根据文件扩展名获得MimeType
- getMimeType(String) - Static method in class cn.hutool.http.HttpUtil
-
根据文件扩展名获得MimeType
- getMsgStr(boolean) - Method in class cn.hutool.http.webservice.SoapClient
-
获取SOAP请求消息
- getMultipart() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得MultiPart表单内容,多用于获得上传的文件
- getName() - Method in class cn.hutool.http.HttpResource
-
- getName() - Method in class cn.hutool.http.useragent.UserAgentInfo
-
获取信息名称
- getOs() - Method in class cn.hutool.http.useragent.UserAgent
-
获取系统类型
- getOsVersion() - Method in class cn.hutool.http.useragent.UserAgent
-
获取系统版本
- getOut() - Method in class cn.hutool.http.server.HttpServerResponse
-
获取响应数据流
- getOutputStream() - Method in class cn.hutool.http.HttpConnection
-
获取输出流对象 输出流对象用于发送数据
- getParam(String) - Method in class cn.hutool.http.server.HttpServerRequest
-
获取指定名称的参数值,取第一个值
- getParams(String) - Method in class cn.hutool.http.server.HttpServerRequest
-
获取指定名称的参数值
- getParams() - Method in class cn.hutool.http.server.HttpServerRequest
-
获取参数Map
- getPath() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得请求路径Path
- getPattern() - Method in class cn.hutool.http.useragent.UserAgentInfo
-
获取匹配模式
- getPlatform() - Method in class cn.hutool.http.useragent.UserAgent
-
获取平台类型
- getPrincipal() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getProtocol() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getProxy() - Method in class cn.hutool.http.HttpConnection
-
获得代理
- getQuery() - Method in class cn.hutool.http.server.HttpServerRequest
-
获取请求参数
- getRaw() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
获取原始对象
- getRawServer() - Method in class cn.hutool.http.server.SimpleServer
-
获得原始HttpServer对象
- getRemoteAddress() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getRequest() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
获取请求
- getRequestBody() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getRequestHeaders() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getRequestMethod() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getRequestURI() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getResponse() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
获取响应
- getResponseBody() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getResponseCode() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getResponseHeaders() - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- getStatus() - Method in class cn.hutool.http.HttpResponse
-
获取状态码
- getStream() - Method in class cn.hutool.http.HttpResource
-
- getString(InputStream, Charset, boolean) - Static method in class cn.hutool.http.HttpUtil
-
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
- getString(byte[], Charset, boolean) - Static method in class cn.hutool.http.HttpUtil
-
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
- getSupportedCipherSuites() - Method in class cn.hutool.http.ssl.CustomProtocolsSSLFactory
-
- getTimeout() - Static method in class cn.hutool.http.HttpGlobalConfig
-
获取全局默认的超时时长
- getURI() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得请求URI
- getURIs() - Method in class cn.hutool.http.cookie.ThreadLocalCookieStore
-
- getUrl() - Method in class cn.hutool.http.HttpConnection
-
获取请求URL
- getUrl() - Method in class cn.hutool.http.HttpRequest
-
获取请求URL
- getUrl() - Method in class cn.hutool.http.HttpResource
-
- getUserAgent() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得User-Agent,未识别返回null
- getUserAgentStr() - Method in class cn.hutool.http.server.HttpServerRequest
-
获得User-Agent
- getValue() - Method in enum cn.hutool.http.ContentType
-
获取value值
- getValue() - Method in enum cn.hutool.http.Header
-
获取值
- getValue() - Method in enum cn.hutool.http.webservice.SoapProtocol
-
获取版本值信息
- getVersion(String) - Method in class cn.hutool.http.useragent.Browser
-
获取浏览器版本
- getVersion(String) - Method in class cn.hutool.http.useragent.Engine
-
获取引擎版本
- getVersion(String) - Method in class cn.hutool.http.useragent.OS
-
获取浏览器版本
- getVersion() - Method in class cn.hutool.http.useragent.UserAgent
-
获取浏览器版本
- getWriter() - Method in class cn.hutool.http.server.HttpServerResponse
-
获取响应数据流
- GlobalCookieManager - Class in cn.hutool.http.cookie
-
全局Cookie管理器,只针对Hutool请求有效
- GlobalCookieManager() - Constructor for class cn.hutool.http.cookie.GlobalCookieManager
-
- GlobalHeaders - Enum in cn.hutool.http
-
- GlobalInterceptor - Enum in cn.hutool.http
-
全局的拦截器
包括请求拦截器和响应拦截器
- GOOGLE_TV - Static variable in class cn.hutool.http.useragent.Platform
-
android
- GT - Static variable in class cn.hutool.http.HtmlUtil
-
- handle(HttpExchange) - Method in class cn.hutool.http.server.handler.ActionHandler
-
- hashCode() - Method in class cn.hutool.http.useragent.UserAgentInfo
-
- head(String) - Static method in class cn.hutool.http.HttpRequest
-
HEAD请求
- header(String) - Method in enum cn.hutool.http.GlobalHeaders
-
根据name获取头信息
- header(Header) - Method in enum cn.hutool.http.GlobalHeaders
-
根据name获取头信息
- header(String, String, boolean) - Method in enum cn.hutool.http.GlobalHeaders
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String, boolean) - Method in enum cn.hutool.http.GlobalHeaders
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String) - Method in enum cn.hutool.http.GlobalHeaders
-
设置一个header
覆盖模式,则替换之前的值
- header(String, String) - Method in enum cn.hutool.http.GlobalHeaders
-
设置一个header
覆盖模式,则替换之前的值
- header(Map<String, List<String>>) - Method in enum cn.hutool.http.GlobalHeaders
-
设置请求头
不覆盖原有请求头
- Header - Enum in cn.hutool.http
-
Http 头域
- header(String) - Method in class cn.hutool.http.HttpBase
-
根据name获取头信息
根据RFC2616规范,header的name不区分大小写
- header(Header) - Method in class cn.hutool.http.HttpBase
-
根据name获取头信息
- header(String, String, boolean) - Method in class cn.hutool.http.HttpBase
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String, boolean) - Method in class cn.hutool.http.HttpBase
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String) - Method in class cn.hutool.http.HttpBase
-
设置一个header
覆盖模式,则替换之前的值
- header(String, String) - Method in class cn.hutool.http.HttpBase
-
设置一个header
覆盖模式,则替换之前的值
- header(Map<String, List<String>>) - Method in class cn.hutool.http.HttpBase
-
设置请求头
不覆盖原有请求头
- header(Map<String, List<String>>, boolean) - Method in class cn.hutool.http.HttpBase
-
设置请求头
- header(String, String, boolean) - Method in class cn.hutool.http.HttpConnection
-
设置请求头
当请求头存在时,覆盖之
- header(Header, String, boolean) - Method in class cn.hutool.http.HttpConnection
-
设置请求头
当请求头存在时,覆盖之
- header(Map<String, List<String>>, boolean) - Method in class cn.hutool.http.HttpConnection
-
设置请求头
不覆盖原有请求头
- header(String) - Method in class cn.hutool.http.HttpConnection
-
获取Http请求头
- header(Header) - Method in class cn.hutool.http.HttpConnection
-
获取Http请求头
- headerList(String) - Method in enum cn.hutool.http.GlobalHeaders
-
根据name获取头信息列表
- headerList(String) - Method in class cn.hutool.http.HttpBase
-
根据name获取头信息列表
- headerMap(Map<String, String>, boolean) - Method in class cn.hutool.http.HttpBase
-
设置请求头
- headers() - Method in enum cn.hutool.http.GlobalHeaders
-
获取headers
- headers - Variable in class cn.hutool.http.HttpBase
-
存储头信息
- headers() - Method in class cn.hutool.http.HttpBase
-
获取headers
- headers() - Method in class cn.hutool.http.HttpConnection
-
获取所有Http请求头
- HTMLFilter - Class in cn.hutool.http
-
HTML过滤器,用于去除XSS(Cross Site Scripting) 漏洞隐患。
- HTMLFilter() - Constructor for class cn.hutool.http.HTMLFilter
-
Default constructor.
- HTMLFilter(boolean) - Constructor for class cn.hutool.http.HTMLFilter
-
Set debug flag to true.
- HTMLFilter(Map<String, Object>) - Constructor for class cn.hutool.http.HTMLFilter
-
Map-parameter configurable constructor.
- htmlSpecialChars(String) - Static method in class cn.hutool.http.HTMLFilter
-
- HtmlUtil - Class in cn.hutool.http
-
HTML工具类
比如我们在使用爬虫爬取HTML页面后,需要对返回页面的HTML内容做一定处理,
比如去掉指定标签(例如广告栏等)、去除JS、去掉样式等等,这些操作都可以使用此工具类完成。
- HtmlUtil() - Constructor for class cn.hutool.http.HtmlUtil
-
- HTTP_1_0 - Static variable in class cn.hutool.http.HttpBase
-
HTTP/1.0
- HTTP_1_1 - Static variable in class cn.hutool.http.HttpBase
-
HTTP/1.1
- HTTP_ACCEPTED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 202: Accepted.
- HTTP_ALREADY_REPORTED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 208: Already Reported.
- HTTP_BAD_GATEWAY - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 502: Bad Gateway.
- HTTP_BAD_METHOD - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 405: Method Not Allowed.
- HTTP_BAD_REQUEST - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 400: Bad Request.
- HTTP_BANDWIDTH_LIMIT_EXCEEDED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 509: Bandwidth Limit Exceeded.
- HTTP_CHECKPOINT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 103: Checkpoint.
- HTTP_CLIENT_TIMEOUT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 408: Request Time-Out.
- HTTP_CONFLICT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 409: Conflict.
- HTTP_CONTINUE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 100: Continue.
- HTTP_CREATED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 201: Created.
- HTTP_ENTITY_TOO_LARGE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 413: Request Entity Too Large.
- HTTP_EXPECTATION_FAILED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 417: Expectation Failed.
- HTTP_FAILED_DEPENDENCY - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 424: Failed Dependency.
- HTTP_FORBIDDEN - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 403: Forbidden.
- HTTP_GATEWAY_TIMEOUT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 504: Gateway Timeout.
- HTTP_GONE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 410: Gone.
- HTTP_I_AM_A_TEAPOT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 418: I'm a teapot.
- HTTP_IM_USED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 226: IM Used.
- HTTP_INSUFFICIENT_STORAGE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 507: Insufficient Storage.
- HTTP_INTERNAL_ERROR - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 500: Internal Server Error.
- HTTP_LENGTH_REQUIRED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 411: Length Required.
- HTTP_LOCKED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 423: Locked.
- HTTP_LOOP_DETECTED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 508: Loop Detected.
- HTTP_MOVED_PERM - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 301: Moved Permanently.
- HTTP_MOVED_TEMP - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 302: Temporary Redirect.
- HTTP_MULT_CHOICE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 300: Multiple Choices.
- HTTP_MULTI_STATUS - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 207: Multi-Status.
- HTTP_NETWORK_AUTHENTICATION_REQUIRED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 511: Network Authentication Required.
- HTTP_NO_CONTENT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 204: No Content.
- HTTP_NOT_ACCEPTABLE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 406: Not Acceptable.
- HTTP_NOT_AUTHORITATIVE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 203: Non-Authoritative Information.
- HTTP_NOT_EXTENDED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 510: Not Extended.
- HTTP_NOT_FOUND - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 404: Not Found.
- HTTP_NOT_IMPLEMENTED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 501: Not Implemented.
- HTTP_NOT_MODIFIED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 304: Not Modified.
- HTTP_OK - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 200: OK.
- HTTP_PARTIAL - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 206: Partial Content.
- HTTP_PAYMENT_REQUIRED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 402: Payment Required.
- HTTP_PERMANENT_REDIRECT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP 1.1 Status-Code 308: Permanent Redirect 永久重定向
见:RFC-7231
- HTTP_PRECON_FAILED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 412: Precondition Failed.
- HTTP_PRECONDITION_REQUIRED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 428: Precondition Required.
- HTTP_PROCESSING - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 102: Processing.
- HTTP_PROXY_AUTH - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 407: Proxy Authentication Required.
- HTTP_REQ_TOO_LONG - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 414: Request-URI Too Large.
- HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 431: Request Header Fields Too Large.
- HTTP_REQUESTED_RANGE_NOT_SATISFIABLE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 416: Requested Range Not Satisfiable.
- HTTP_RESET - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 205: Reset Content.
- HTTP_SEE_OTHER - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 303: See Other.
- HTTP_SWITCHING_PROTOCOLS - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 101: Switching Protocols.
- HTTP_TEMP_REDIRECT - Static variable in class cn.hutool.http.HttpStatus
-
HTTP 1.1 Status-Code 307: Temporary Redirect.
- HTTP_TOO_EARLY - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 425: Too Early.
- HTTP_TOO_MANY_REQUESTS - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 429: Too Many Requests.
- HTTP_UNAUTHORIZED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 401: Unauthorized.
- HTTP_UNAVAILABLE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 503: Service Unavailable.
- HTTP_UNAVAILABLE_FOR_LEGAL_REASONS - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 451: Unavailable For Legal Reasons.
- HTTP_UNPROCESSABLE_ENTITY - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 422: Unprocessable Entity.
- HTTP_UNSUPPORTED_TYPE - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 415: Unsupported Media Type.
- HTTP_UPGRADE_REQUIRED - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 426: Upgrade Required.
- HTTP_USE_PROXY - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 305: Use Proxy.
- HTTP_VARIANT_ALSO_NEGOTIATES - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 506: Variant Also Negotiates.
- HTTP_VERSION - Static variable in class cn.hutool.http.HttpStatus
-
HTTP Status-Code 505: HTTP Version Not Supported.
- HttpBase<T> - Class in cn.hutool.http
-
http基类
- HttpBase() - Constructor for class cn.hutool.http.HttpBase
-
- HttpConfig - Class in cn.hutool.http
-
Http配置项
- HttpConfig() - Constructor for class cn.hutool.http.HttpConfig
-
- HttpConnection - Class in cn.hutool.http
-
http连接对象,对HttpURLConnection的包装
- HttpConnection(URL, Proxy) - Constructor for class cn.hutool.http.HttpConnection
-
构造HttpConnection
- httpConnection - Variable in class cn.hutool.http.HttpResponse
-
持有连接对象
- HttpDownloader - Class in cn.hutool.http
-
下载封装,下载统一使用GET请求,默认支持30x跳转
- HttpDownloader() - Constructor for class cn.hutool.http.HttpDownloader
-
- HttpException - Exception in cn.hutool.http
-
HTTP异常
- HttpException(Throwable) - Constructor for exception cn.hutool.http.HttpException
-
- HttpException(String) - Constructor for exception cn.hutool.http.HttpException
-
- HttpException(String, Object...) - Constructor for exception cn.hutool.http.HttpException
-
- HttpException(String, Throwable) - Constructor for exception cn.hutool.http.HttpException
-
- HttpException(String, Throwable, boolean, boolean) - Constructor for exception cn.hutool.http.HttpException
-
- HttpException(Throwable, String, Object...) - Constructor for exception cn.hutool.http.HttpException
-
- HttpExchangeWrapper - Class in cn.hutool.http.server
-
HttpExchange包装类,提供增强方法和缓存
- HttpExchangeWrapper(HttpExchange) - Constructor for class cn.hutool.http.server.HttpExchangeWrapper
-
构造
- HttpFilter - Interface in cn.hutool.http.server.filter
-
过滤器接口,用于简化Filter 使用
- HttpGlobalConfig - Class in cn.hutool.http
-
HTTP 全局参数配置
- HttpGlobalConfig() - Constructor for class cn.hutool.http.HttpGlobalConfig
-
- HttpInputStream - Class in cn.hutool.http
-
HTTP输入流,此流用于包装Http请求响应内容的流,用于解析各种压缩、分段的响应流内容
- HttpInputStream(HttpResponse) - Constructor for class cn.hutool.http.HttpInputStream
-
构造
- HttpInterceptor<T extends HttpBase<T>> - Interface in cn.hutool.http
-
Http拦截器接口,通过实现此接口,完成请求发起前或结束后对请求的编辑工作
- HttpInterceptor.Chain<T extends HttpBase<T>> - Class in cn.hutool.http
-
拦截器链
- HttpRequest - Class in cn.hutool.http
-
http请求类
Http请求类用于构建Http请求并同步获取结果,此类通过CookieManager持有域名对应的Cookie值,再次请求时会自动附带Cookie信息
- HttpRequest(String) - Constructor for class cn.hutool.http.HttpRequest
-
- HttpRequest(UrlBuilder) - Constructor for class cn.hutool.http.HttpRequest
-
构造
- HttpResource - Class in cn.hutool.http
-
HTTP资源,可自定义Content-Type
- HttpResource(Resource, String) - Constructor for class cn.hutool.http.HttpResource
-
构造
- HttpResponse - Class in cn.hutool.http
-
Http响应类
非线程安全对象
- HttpResponse(HttpConnection, HttpConfig, Charset, boolean, boolean) - Constructor for class cn.hutool.http.HttpResponse
-
构造
- HttpServerBase - Class in cn.hutool.http.server
-
HttpServer公用对象,提供HttpExchange包装和公用方法
- HttpServerBase(HttpExchange) - Constructor for class cn.hutool.http.server.HttpServerBase
-
构造
- HttpServerRequest - Class in cn.hutool.http.server
-
Http请求对象,对HttpExchange封装
- HttpServerRequest(HttpExchange) - Constructor for class cn.hutool.http.server.HttpServerRequest
-
构造
- HttpServerResponse - Class in cn.hutool.http.server
-
Http响应对象,用于写出数据到客户端
- HttpServerResponse(HttpExchange) - Constructor for class cn.hutool.http.server.HttpServerResponse
-
构造
- HttpStatus - Class in cn.hutool.http
-
HTTP状态码
- HttpStatus() - Constructor for class cn.hutool.http.HttpStatus
-
- HttpUtil - Class in cn.hutool.http
-
Http请求工具类
- HttpUtil() - Constructor for class cn.hutool.http.HttpUtil
-
- httpVersion - Variable in class cn.hutool.http.HttpBase
-
http版本
- httpVersion() - Method in class cn.hutool.http.HttpBase
-
返回http版本
- httpVersion(String) - Method in class cn.hutool.http.HttpBase
-
设置http版本,此方法不会影响到实际请求的HTTP版本,只用于帮助判断是否connect:Keep-Alive
- send(int) - Method in class cn.hutool.http.server.HttpServerResponse
-
发送HTTP状态码,Content-Length为0不定长度,会输出Transfer-encoding: chunked
- send(int, long) - Method in class cn.hutool.http.server.HttpServerResponse
-
发送HTTP状态码
- send() - Method in class cn.hutool.http.webservice.SoapClient
-
执行Webservice请求,即发送SOAP内容
- send(boolean) - Method in class cn.hutool.http.webservice.SoapClient
-
执行Webservice请求,即发送SOAP内容
- send404(String) - Method in class cn.hutool.http.server.HttpServerResponse
-
发送404错误页
- sendError(int, String) - Method in class cn.hutool.http.server.HttpServerResponse
-
发送错误页
- sendForMessage() - Method in class cn.hutool.http.webservice.SoapClient
-
执行Webservice请求,即发送SOAP内容
- sendForResponse() - Method in class cn.hutool.http.webservice.SoapClient
-
发送请求,获取异步响应
- sendOk() - Method in class cn.hutool.http.server.HttpServerResponse
-
发送成功状态码
- sendOk(int) - Method in class cn.hutool.http.server.HttpServerResponse
-
发送成功状态码
- sendResponseHeaders(int, long) - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- setAttr(String, Object) - Method in class cn.hutool.http.server.HttpServerResponse
-
设置属性
- setAttribute(String, Object) - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- setBlockSize(int) - Method in class cn.hutool.http.HttpConfig
-
采用流方式上传数据,无需本地缓存数据。
- setBoundary(String) - Static method in class cn.hutool.http.HttpGlobalConfig
-
设置默认的Multipart边界
- setBrowser(Browser) - Method in class cn.hutool.http.useragent.UserAgent
-
设置浏览器类型
- setCharset(Charset) - Method in class cn.hutool.http.server.HttpServerResponse
-
设置响应的编码
- setCharset(Charset) - Method in class cn.hutool.http.webservice.SoapClient
-
设置编码
- setChunkedStreamingMode(int) - Method in class cn.hutool.http.HttpConnection
-
采用流方式上传数据,无需本地缓存数据。
- setChunkedStreamingMode(int) - Method in class cn.hutool.http.HttpRequest
-
采用流方式上传数据,无需本地缓存数据。
- setConfig(HttpConfig) - Method in class cn.hutool.http.HttpRequest
-
将新的配置加入
注意加入的配置可能被修改
- setConnectionAndReadTimeout(int) - Method in class cn.hutool.http.HttpConnection
-
设置连接和读取的超时时间
- setConnectionTimeout(int) - Method in class cn.hutool.http.HttpConfig
-
设置连接超时,单位:毫秒
- setConnectionTimeout(int) - Method in class cn.hutool.http.HttpRequest
-
设置连接超时,单位:毫秒
- setConnectionTimeout(int) - Method in class cn.hutool.http.webservice.SoapClient
-
设置连接超时,单位:毫秒
- setConnectTimeout(int) - Method in class cn.hutool.http.HttpConnection
-
设置连接超时
- setContentLength(long) - Method in class cn.hutool.http.server.HttpServerResponse
-
设置Content-Length头
- setContentType(String) - Method in class cn.hutool.http.server.HttpServerResponse
-
- setCookie(String) - Method in class cn.hutool.http.HttpConnection
-
设置Cookie
- setCookieManager(CookieManager) - Static method in class cn.hutool.http.cookie.GlobalCookieManager
-
- setCookieManager(CookieManager) - Static method in class cn.hutool.http.HttpGlobalConfig
-
- setCookieManager(CookieManager) - Static method in class cn.hutool.http.HttpRequest
-
- setDecodeUrl(boolean) - Method in class cn.hutool.http.HttpConfig
-
设置是否忽略解码URL,包括URL中的Path部分和Param部分。
- setDecodeUrl(boolean) - Static method in class cn.hutool.http.HttpGlobalConfig
-
设置是否忽略解码URL,包括URL中的Path部分和Param部分。
- setEngine(Engine) - Method in class cn.hutool.http.useragent.UserAgent
-
设置引擎类型
- setEngineVersion(String) - Method in class cn.hutool.http.useragent.UserAgent
-
设置引擎版本
- setExecutor(Executor) - Method in class cn.hutool.http.server.SimpleServer
-
设置自定义线程池
- setFixedContentLength(long) - Method in class cn.hutool.http.HttpRequest
-
设置固定长度的流模式,会设置HTTP请求头中的Content-Length字段,告知服务器整个请求体的精确字节大小。
- setFixedLengthStreamingMode(long) - Method in class cn.hutool.http.HttpConnection
-
设置固定长度的流模式,会设置HTTP请求头中的Content-Length字段,告知服务器整个请求体的精确字节大小。
- setFollowRedirects(boolean) - Method in class cn.hutool.http.HttpRequest
-
- setFollowRedirectsCookie(boolean) - Method in class cn.hutool.http.HttpConfig
-
自动重定向时是否处理cookie
- setFollowRedirectsCookie(boolean) - Method in class cn.hutool.http.HttpRequest
-
自动重定向时是否处理cookie
- setGlobalTimeout(int) - Static method in class cn.hutool.http.HttpRequest
-
设置全局默认的连接和读取超时时长
- setHeader(Header, String) - Method in class cn.hutool.http.server.HttpServerResponse
-
设置响应头,如果已经存在,则覆盖
- setHeader(String, String) - Method in class cn.hutool.http.server.HttpServerResponse
-
设置响应头,如果已经存在,则覆盖
- setHeader(String, List<String>) - Method in class cn.hutool.http.server.HttpServerResponse
-
设置响应头,如果已经存在,则覆盖
- setHeaders(Map<String, List<String>>) - Method in class cn.hutool.http.server.HttpServerResponse
-
设置所有响应头,如果已经存在,则覆盖
- setHostnameVerifier(HostnameVerifier) - Method in class cn.hutool.http.HttpConfig
-
设置域名验证器
只针对HTTPS请求,如果不设置,不做验证,所有域名被信任
- setHostnameVerifier(HostnameVerifier) - Method in class cn.hutool.http.HttpRequest
-
设置域名验证器
只针对HTTPS请求,如果不设置,不做验证,所有域名被信任
- setHttpProxy(String, int) - Method in class cn.hutool.http.HttpConfig
-
设置Http代理
- setHttpProxy(String, int) - Method in class cn.hutool.http.HttpRequest
-
设置Http代理
- setHttpsInfo(HostnameVerifier, SSLSocketFactory) - Method in class cn.hutool.http.HttpConnection
-
设置https请求参数
有些时候htts请求会出现com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl的实现,此为sun内部api,按照普通http请求处理
- setIgnoreEOFError(boolean) - Method in class cn.hutool.http.HttpConfig
-
设置是否忽略响应读取时可能的EOF异常。
- setIgnoreEOFError(boolean) - Static method in class cn.hutool.http.HttpGlobalConfig
-
设置是否忽略响应读取时可能的EOF异常。
- setInstanceFollowRedirects(boolean) - Method in class cn.hutool.http.HttpConnection
-
设置自动HTTP 30X跳转
- setInterceptorOnRedirect(boolean) - Method in class cn.hutool.http.HttpConfig
-
重定向时是否使用拦截器
- setKeyManagers(KeyManager...) - Method in class cn.hutool.http.ssl.SSLSocketFactoryBuilder
-
Deprecated.
设置 JSSE key managers
- setMaxRedirectCount(int) - Method in class cn.hutool.http.HttpConfig
-
设置最大重定向次数
如果次数小于1则表示不重定向,大于等于1表示打开重定向
- setMaxRedirectCount(int) - Static method in class cn.hutool.http.HttpGlobalConfig
-
设置默认全局默认的最大重定向次数,如设置0表示不重定向
如果设置为1,表示重定向一次,即请求两次
- setMaxRedirectCount(int) - Method in class cn.hutool.http.HttpRequest
-
设置最大重定向次数
如果次数小于1则表示不重定向,大于等于1表示打开重定向
- setMethod(Method) - Method in class cn.hutool.http.HttpConnection
-
设置请求方法
- setMethod(Method) - Method in class cn.hutool.http.HttpRequest
-
设置请求方法
- setMethod(Name, Map<String, Object>, boolean) - Method in class cn.hutool.http.webservice.SoapClient
-
设置请求方法
- setMethod(QName, Map<String, Object>, boolean) - Method in class cn.hutool.http.webservice.SoapClient
-
设置请求方法
- setMethod(String) - Method in class cn.hutool.http.webservice.SoapClient
-
设置请求方法
方法名自动识别前缀,前缀和方法名使用“:”分隔
当识别到前缀后,自动添加xmlns属性,关联到默认的namespaceURI
- setMethod(String, String) - Method in class cn.hutool.http.webservice.SoapClient
-
设置请求方法
方法名自动识别前缀,前缀和方法名使用“:”分隔
当识别到前缀后,自动添加xmlns属性,关联到传入的namespaceURI
- setMethod(QName) - Method in class cn.hutool.http.webservice.SoapClient
-
设置请求方法
- setMobile(boolean) - Method in class cn.hutool.http.useragent.UserAgent
-
设置是否为移动平台
- setOs(OS) - Method in class cn.hutool.http.useragent.UserAgent
-
设置系统类型
- setOsVersion(String) - Method in class cn.hutool.http.useragent.UserAgent
-
设置系统版本
- setParam(String, Object) - Method in class cn.hutool.http.webservice.SoapClient
-
设置方法参数,使用方法的前缀
- setParam(String, Object, boolean) - Method in class cn.hutool.http.webservice.SoapClient
-
设置方法参数
- setParams(Map<String, Object>) - Method in class cn.hutool.http.webservice.SoapClient
-
批量设置参数,使用方法的前缀
- setParams(Map<String, Object>, boolean) - Method in class cn.hutool.http.webservice.SoapClient
-
批量设置参数
- setPlatform(Platform) - Method in class cn.hutool.http.useragent.UserAgent
-
设置平台类型
- setProtocol(String) - Method in class cn.hutool.http.ssl.SSLSocketFactoryBuilder
-
Deprecated.
设置协议
- setProxy(Proxy) - Method in class cn.hutool.http.HttpConfig
-
设置代理
- setProxy(Proxy) - Method in class cn.hutool.http.HttpRequest
-
设置代理
- setReadTimeout(int) - Method in class cn.hutool.http.HttpConfig
-
设置连接超时,单位:毫秒
- setReadTimeout(int) - Method in class cn.hutool.http.HttpConnection
-
设置读取超时
- setReadTimeout(int) - Method in class cn.hutool.http.HttpRequest
-
设置连接超时,单位:毫秒
- setReadTimeout(int) - Method in class cn.hutool.http.webservice.SoapClient
-
设置连接超时,单位:毫秒
- setRest(boolean) - Method in class cn.hutool.http.HttpRequest
-
设置是否rest模式
rest模式下get请求不会把参数附加到URL之后
- setRoot(String) - Method in class cn.hutool.http.server.SimpleServer
-
设置根目录,默认的页面从root目录中读取解析返回
- setRoot(File) - Method in class cn.hutool.http.server.SimpleServer
-
设置根目录,默认的页面从root目录中读取解析返回
- setSecureRandom(SecureRandom) - Method in class cn.hutool.http.ssl.SSLSocketFactoryBuilder
-
Deprecated.
设置 SecureRandom
- setSSLProtocol(String) - Method in class cn.hutool.http.HttpConfig
-
- setSSLProtocol(String) - Method in class cn.hutool.http.HttpRequest
-
- setSSLSocketFactory(SSLSocketFactory) - Method in class cn.hutool.http.HttpConfig
-
设置SSLSocketFactory
只针对HTTPS请求,如果不设置,使用默认的SSLSocketFactory
默认SSLSocketFactory为:SSLSocketFactoryBuilder.create().build();
- setSSLSocketFactory(SSLSocketFactory) - Method in class cn.hutool.http.HttpRequest
-
设置SSLSocketFactory
只针对HTTPS请求,如果不设置,使用默认的SSLSocketFactory
默认SSLSocketFactory为:SSLSocketFactoryBuilder.create().build();
- setStreams(InputStream, OutputStream) - Method in class cn.hutool.http.server.HttpExchangeWrapper
-
- setTimeout(int) - Static method in class cn.hutool.http.HttpGlobalConfig
-
设置默认的连接和读取超时时长
-1: 含义,永不超时。
- setTrustAnyHost(boolean) - Static method in class cn.hutool.http.HttpGlobalConfig
-
是否信任所有Host
见:https://github.com/dromara/hutool/issues/2042
- setTrustManagers(TrustManager...) - Method in class cn.hutool.http.ssl.SSLSocketFactoryBuilder
-
Deprecated.
设置信任信息
- setUrl(String) - Method in class cn.hutool.http.HttpRequest
-
设置URL
- setUrl(UrlBuilder) - Method in class cn.hutool.http.HttpRequest
-
设置URL
- setUrl(String) - Method in class cn.hutool.http.webservice.SoapClient
-
设置Webservice请求地址
- setUrlHandler(URLStreamHandler) - Method in class cn.hutool.http.HttpRequest
-
设置
URLStreamHandler
部分环境下需要单独设置此项,例如当 WebLogic Server 实例充当 SSL 客户端角色(它会尝试通过 SSL 连接到其他服务器或应用程序)时,
它会验证 SSL 服务器在数字证书中返回的主机名是否与用于连接 SSL 服务器的 URL 主机名相匹配。
- setUseDefaultContentTypeIfNull(boolean) - Method in class cn.hutool.http.HttpConfig
-
设置是否使用默认Content-Type,如果请求中未设置Content-Type,是否使用默认值
- setVersion(String) - Method in class cn.hutool.http.useragent.UserAgent
-
设置浏览器版本
- SimpleFilter - Class in cn.hutool.http.server.filter
-
匿名简单过滤器,跳过了描述
- SimpleFilter() - Constructor for class cn.hutool.http.server.filter.SimpleFilter
-
- SimpleServer - Class in cn.hutool.http.server
-
简易Http服务器,基于HttpServer
- SimpleServer(int) - Constructor for class cn.hutool.http.server.SimpleServer
-
构造
- SimpleServer(String, int) - Constructor for class cn.hutool.http.server.SimpleServer
-
构造
- SimpleServer(InetSocketAddress) - Constructor for class cn.hutool.http.server.SimpleServer
-
构造
- SimpleServer(InetSocketAddress, HttpsConfigurator) - Constructor for class cn.hutool.http.server.SimpleServer
-
构造
- skip(long) - Method in class cn.hutool.http.HttpInputStream
-
- SoapClient - Class in cn.hutool.http.webservice
-
SOAP客户端
此对象用于构建一个SOAP消息,并通过HTTP接口发出消息内容。
- SoapClient(String) - Constructor for class cn.hutool.http.webservice.SoapClient
-
构造,默认使用soap1.1版本协议
- SoapClient(String, SoapProtocol) - Constructor for class cn.hutool.http.webservice.SoapClient
-
构造
- SoapClient(String, SoapProtocol, String) - Constructor for class cn.hutool.http.webservice.SoapClient
-
构造
- SoapProtocol - Enum in cn.hutool.http.webservice
-
SOAP协议版本枚举
- SoapRuntimeException - Exception in cn.hutool.http.webservice
-
SOAP异常
- SoapRuntimeException(Throwable) - Constructor for exception cn.hutool.http.webservice.SoapRuntimeException
-
- SoapRuntimeException(String) - Constructor for exception cn.hutool.http.webservice.SoapRuntimeException
-
- SoapRuntimeException(String, Object...) - Constructor for exception cn.hutool.http.webservice.SoapRuntimeException
-
- SoapRuntimeException(String, Throwable) - Constructor for exception cn.hutool.http.webservice.SoapRuntimeException
-
- SoapRuntimeException(Throwable, String, Object...) - Constructor for exception cn.hutool.http.webservice.SoapRuntimeException
-
- SoapUtil - Class in cn.hutool.http.webservice
-
SOAP相关工具类
- SoapUtil() - Constructor for class cn.hutool.http.webservice.SoapUtil
-
- SSLSocketFactoryBuilder - Class in cn.hutool.http.ssl
-
- SSLSocketFactoryBuilder() - Constructor for class cn.hutool.http.ssl.SSLSocketFactoryBuilder
-
Deprecated.
构造
- start() - Method in class cn.hutool.http.server.SimpleServer
-
启动Http服务器,启动后会阻塞当前线程
- status - Variable in class cn.hutool.http.HttpResponse
-
响应状态码
- store(HttpConnection) - Static method in class cn.hutool.http.cookie.GlobalCookieManager
-
存储响应的Cookie信息到本地
- sync() - Method in class cn.hutool.http.HttpResponse
-
- valueOf(String) - Static method in enum cn.hutool.http.ContentType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cn.hutool.http.GlobalHeaders
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cn.hutool.http.GlobalInterceptor
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cn.hutool.http.Header
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cn.hutool.http.Method
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cn.hutool.http.webservice.SoapProtocol
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum cn.hutool.http.ContentType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum cn.hutool.http.GlobalHeaders
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum cn.hutool.http.GlobalInterceptor
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum cn.hutool.http.Header
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum cn.hutool.http.Method
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum cn.hutool.http.webservice.SoapProtocol
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- verify(String, SSLSession) - Method in class cn.hutool.http.ssl.TrustAnyHostnameVerifier
-