- get(String) - 枚举 中的静态方法cn.hutool.http.ContentType
-
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
1. application/json
1. application/xml
- get(URI) - 类 中的方法cn.hutool.http.cookie.ThreadLocalCookieStore
-
- get(String) - 类 中的静态方法cn.hutool.http.HttpRequest
-
GET请求
- get(String, Charset) - 类 中的静态方法cn.hutool.http.HttpUtil
-
发送get请求
- get(String) - 类 中的静态方法cn.hutool.http.HttpUtil
-
发送get请求
- get(String, int) - 类 中的静态方法cn.hutool.http.HttpUtil
-
发送get请求
- get(String, Map<String, Object>) - 类 中的静态方法cn.hutool.http.HttpUtil
-
发送get请求
- get(String, Map<String, Object>, int) - 类 中的静态方法cn.hutool.http.HttpUtil
-
发送get请求
- getAcceptedIssuers() - 类 中的方法cn.hutool.http.ssl.DefaultTrustManager
-
- getAddress() - 类 中的方法cn.hutool.http.server.SimpleServer
-
获取服务器地址信息
- getBody() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
- getBody(Charset) - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获取请求体文本,可以是form表单、json、xml等任意内容
- getBodyBytes() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获取body的bytes数组
- getBodyStream() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获取请求体的流,流中可以读取请求内容,包括请求表单数据或文件上传数据
- getBrowser() - 类 中的方法cn.hutool.http.useragent.UserAgent
-
获取浏览器类型
- getCharset() - 类 中的方法cn.hutool.http.HttpConnection
-
获取字符集编码
从Http连接的头信息中获得字符集
从ContentType中获取
- getCharset(HttpURLConnection) - 类 中的静态方法cn.hutool.http.HttpUtil
-
从Http连接的头信息中获得字符集
从ContentType中获取
- getCharset(String) - 类 中的静态方法cn.hutool.http.HttpUtil
-
从Http连接的头信息中获得字符集
从ContentType中获取
- getCharset() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获取编码,获取失败默认使用UTF-8,获取规则如下:
1、从Content-Type头中获取编码,类似于:text/html;charset=utf-8
- getCharsetName() - 类 中的方法cn.hutool.http.HttpConnection
-
获得字符集编码
从Http连接的头信息中获得字符集
从ContentType中获取
- getClientIP(String...) - 类 中的方法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...) - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获取客户端IP
headerNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getConnection() - 类 中的方法cn.hutool.http.HttpRequest
-
- getContentType() - 类 中的静态方法cn.hutool.http.body.MultipartBody
-
获取Multipart的Content-Type类型
- getContentType() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获取Content-Type头信息
- getContentTypeByRequestBody(String) - 类 中的静态方法cn.hutool.http.HttpUtil
-
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
1. application/json
1. application/xml
- getCookie(String) - 类 中的方法cn.hutool.http.HttpResponse
-
获取Cookie
- getCookie(String) - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得指定Cookie名对应的HttpCookie对象
- getCookieManager() - 类 中的静态方法cn.hutool.http.cookie.GlobalCookieManager
-
- getCookieManager() - 类 中的静态方法cn.hutool.http.HttpGlobalConfig
-
获取Cookie管理器,用于自定义Cookie管理
- getCookieManager() - 类 中的静态方法cn.hutool.http.HttpRequest
-
获取Cookie管理器,用于自定义Cookie管理
- getCookieMap() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得Cookie信息Map,键为Cookie名,值为HttpCookie对象
- getCookies(HttpConnection) - 类 中的静态方法cn.hutool.http.cookie.GlobalCookieManager
-
获取指定域名下所有Cookie信息
- getCookies() - 类 中的方法cn.hutool.http.cookie.ThreadLocalCookieStore
-
- getCookies() - 类 中的方法cn.hutool.http.HttpResponse
-
获取Cookie
- getCookies() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得Cookie信息列表
- getCookiesStr() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得Cookie信息字符串
- getCookieStore() - 类 中的方法cn.hutool.http.cookie.ThreadLocalCookieStore
-
获取本线程下的CookieStore
- getCookieStr() - 类 中的方法cn.hutool.http.HttpResponse
-
获取本次请求服务器返回的Cookie信息
- getCookieValue(String) - 类 中的方法cn.hutool.http.HttpResponse
-
获取Cookie值
- getDefaultCipherSuites() - 类 中的方法cn.hutool.http.ssl.CustomProtocolsSSLFactory
-
- getEngine() - 类 中的方法cn.hutool.http.useragent.UserAgent
-
获取引擎类型
- getEngineVersion() - 类 中的方法cn.hutool.http.useragent.UserAgent
-
获取引擎版本
- getErrorStream() - 类 中的方法cn.hutool.http.HttpConnection
-
当返回错误代码时,获得错误内容流
- getHeader(Header) - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeader(String) - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeader(String, Charset) - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeaders() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeaders() - 类 中的方法cn.hutool.http.server.HttpServerResponse
-
获得所有响应头,获取后可以添加新的响应头
- getHttpExchange() - 类 中的方法cn.hutool.http.server.HttpServerBase
-
获取HttpExchange
对象
- getHttpURLConnection() - 类 中的方法cn.hutool.http.HttpConnection
-
获取HttpURLConnection对象
- getInputStream() - 类 中的方法cn.hutool.http.HttpConnection
-
获得输入流对象
输入流对象用于读取数据
- getMessage() - 类 中的方法cn.hutool.http.webservice.SoapClient
-
- getMethod() - 类 中的方法cn.hutool.http.HttpConnection
-
获取请求方法,GET/POST
- getMethod() - 类 中的方法cn.hutool.http.HttpRequest
-
获取Http请求方法
- getMethod() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得Http Method
- getMethodEle() - 类 中的方法cn.hutool.http.webservice.SoapClient
-
获取方法节点
用于创建子节点等操作
- getMimeType(String, String) - 类 中的静态方法cn.hutool.http.HttpUtil
-
根据文件扩展名获得MimeType
- getMimeType(String) - 类 中的静态方法cn.hutool.http.HttpUtil
-
根据文件扩展名获得MimeType
- getMsgStr(boolean) - 类 中的方法cn.hutool.http.webservice.SoapClient
-
获取SOAP请求消息
- getMultipart() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得MultiPart表单内容,多用于获得上传的文件
- getName() - 类 中的方法cn.hutool.http.useragent.UserAgentInfo
-
获取信息名称
- getOs() - 类 中的方法cn.hutool.http.useragent.UserAgent
-
获取系统类型
- getOut() - 类 中的方法cn.hutool.http.server.HttpServerResponse
-
获取响应数据流
- getOutputStream() - 类 中的方法cn.hutool.http.HttpConnection
-
获取输出流对象 输出流对象用于发送数据
- getParams() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
- getPath() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得请求路径Path
- getPattern() - 类 中的方法cn.hutool.http.useragent.UserAgentInfo
-
获取匹配模式
- getPlatform() - 类 中的方法cn.hutool.http.useragent.UserAgent
-
获取平台类型
- getProxy() - 类 中的方法cn.hutool.http.HttpConnection
-
获得代理
- getQuery() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获取请求参数
- getRawServer() - 类 中的方法cn.hutool.http.server.SimpleServer
-
获得原始HttpServer对象
- getStatus() - 类 中的方法cn.hutool.http.HttpResponse
-
获取状态码
- getString(InputStream, Charset, boolean) - 类 中的静态方法cn.hutool.http.HttpUtil
-
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
- getString(byte[], Charset, boolean) - 类 中的静态方法cn.hutool.http.HttpUtil
-
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
- getSupportedCipherSuites() - 类 中的方法cn.hutool.http.ssl.CustomProtocolsSSLFactory
-
- getTimeout() - 类 中的静态方法cn.hutool.http.HttpGlobalConfig
-
获取全局默认的超时时长
- getURI() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得请求URI
- getURIs() - 类 中的方法cn.hutool.http.cookie.ThreadLocalCookieStore
-
- getUrl() - 类 中的方法cn.hutool.http.HttpConnection
-
获取请求URL
- getUrl() - 类 中的方法cn.hutool.http.HttpRequest
-
获取请求URL
- getUserAgent() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得User-Agent,未识别返回null
- getUserAgentStr() - 类 中的方法cn.hutool.http.server.HttpServerRequest
-
获得User-Agent
- getValue() - 枚举 中的方法cn.hutool.http.ContentType
-
获取value值
- getValue() - 枚举 中的方法cn.hutool.http.Header
-
获取值
- getValue() - 枚举 中的方法cn.hutool.http.webservice.SoapProtocol
-
获取版本值信息
- getVersion(String) - 类 中的方法cn.hutool.http.useragent.Browser
-
获取浏览器版本
- getVersion() - 类 中的方法cn.hutool.http.useragent.UserAgent
-
获取浏览器版本
- getWriter() - 类 中的方法cn.hutool.http.server.HttpServerResponse
-
获取响应数据流
- GlobalCookieManager - cn.hutool.http.cookie中的类
-
全局Cookie管理器,只针对Hutool请求有效
- GlobalCookieManager() - 类 的构造器cn.hutool.http.cookie.GlobalCookieManager
-
- GlobalHeaders - cn.hutool.http中的枚举
-
- GOOGLE_TV - 类 中的静态变量cn.hutool.http.useragent.Platform
-
android
- GT - 类 中的静态变量cn.hutool.http.HtmlUtil
-
- handle(HttpExchange) - 类 中的方法cn.hutool.http.server.handler.ActionHandler
-
- hashCode() - 类 中的方法cn.hutool.http.useragent.UserAgentInfo
-
- head(String) - 类 中的静态方法cn.hutool.http.HttpRequest
-
HEAD请求
- header(String) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
根据name获取头信息
- header(Header) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
根据name获取头信息
- header(String, String, boolean) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String, boolean) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
设置一个header
覆盖模式,则替换之前的值
- header(String, String) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
设置一个header
覆盖模式,则替换之前的值
- header(Map<String, List<String>>) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
设置请求头
不覆盖原有请求头
- Header - cn.hutool.http中的枚举
-
Http 头域
- header(String) - 类 中的方法cn.hutool.http.HttpBase
-
根据name获取头信息
根据RFC2616规范,header的name不区分大小写
- header(Header) - 类 中的方法cn.hutool.http.HttpBase
-
根据name获取头信息
- header(String, String, boolean) - 类 中的方法cn.hutool.http.HttpBase
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String, boolean) - 类 中的方法cn.hutool.http.HttpBase
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(Header, String) - 类 中的方法cn.hutool.http.HttpBase
-
设置一个header
覆盖模式,则替换之前的值
- header(String, String) - 类 中的方法cn.hutool.http.HttpBase
-
设置一个header
覆盖模式,则替换之前的值
- header(Map<String, List<String>>) - 类 中的方法cn.hutool.http.HttpBase
-
设置请求头
不覆盖原有请求头
- header(Map<String, List<String>>, boolean) - 类 中的方法cn.hutool.http.HttpBase
-
设置请求头
- header(String, String, boolean) - 类 中的方法cn.hutool.http.HttpConnection
-
设置请求头
当请求头存在时,覆盖之
- header(Header, String, boolean) - 类 中的方法cn.hutool.http.HttpConnection
-
设置请求头
当请求头存在时,覆盖之
- header(Map<String, List<String>>, boolean) - 类 中的方法cn.hutool.http.HttpConnection
-
设置请求头
不覆盖原有请求头
- header(String) - 类 中的方法cn.hutool.http.HttpConnection
-
获取Http请求头
- header(Header) - 类 中的方法cn.hutool.http.HttpConnection
-
获取Http请求头
- headerList(String) - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
根据name获取头信息列表
- headerList(String) - 类 中的方法cn.hutool.http.HttpBase
-
根据name获取头信息列表
- headerMap(Map<String, String>, boolean) - 类 中的方法cn.hutool.http.HttpBase
-
设置请求头
- headers - 枚举 中的变量cn.hutool.http.GlobalHeaders
-
存储头信息
- headers() - 枚举 中的方法cn.hutool.http.GlobalHeaders
-
获取headers
- headers - 类 中的变量cn.hutool.http.HttpBase
-
存储头信息
- headers() - 类 中的方法cn.hutool.http.HttpBase
-
获取headers
- headers() - 类 中的方法cn.hutool.http.HttpConnection
-
获取所有Http请求头
- HTMLFilter - cn.hutool.http中的类
-
HTML过滤器,用于去除XSS(Cross Site Scripting) 漏洞隐患。
- HTMLFilter() - 类 的构造器cn.hutool.http.HTMLFilter
-
Default constructor.
- HTMLFilter(boolean) - 类 的构造器cn.hutool.http.HTMLFilter
-
Set debug flag to true.
- HTMLFilter(Map<String, Object>) - 类 的构造器cn.hutool.http.HTMLFilter
-
Map-parameter configurable constructor.
- htmlSpecialChars(String) - 类 中的静态方法cn.hutool.http.HTMLFilter
-
- HtmlUtil - cn.hutool.http中的类
-
HTML工具类
比如我们在使用爬虫爬取HTML页面后,需要对返回页面的HTML内容做一定处理,
比如去掉指定标签(例如广告栏等)、去除JS、去掉样式等等,这些操作都可以使用此工具类完成。
- HtmlUtil() - 类 的构造器cn.hutool.http.HtmlUtil
-
- HTTP_1_0 - 类 中的静态变量cn.hutool.http.HttpBase
-
HTTP/1.0
- HTTP_1_1 - 类 中的静态变量cn.hutool.http.HttpBase
-
HTTP/1.1
- HTTP_ACCEPTED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 202: Accepted.
- HTTP_BAD_GATEWAY - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 502: Bad Gateway.
- HTTP_BAD_METHOD - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 405: Method Not Allowed.
- HTTP_BAD_REQUEST - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 400: Bad Request.
- HTTP_CLIENT_TIMEOUT - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 408: Request Time-Out.
- HTTP_CONFLICT - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 409: Conflict.
- HTTP_CREATED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 201: Created.
- HTTP_ENTITY_TOO_LARGE - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 413: Request Entity Too Large.
- HTTP_FORBIDDEN - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 403: Forbidden.
- HTTP_GATEWAY_TIMEOUT - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 504: Gateway Timeout.
- HTTP_GONE - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 410: Gone.
- HTTP_INTERNAL_ERROR - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 500: Internal Server Error.
- HTTP_LENGTH_REQUIRED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 411: Length Required.
- HTTP_MOVED_PERM - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 301: Moved Permanently.
- HTTP_MOVED_TEMP - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 302: Temporary Redirect.
- HTTP_MULT_CHOICE - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 300: Multiple Choices.
- HTTP_NO_CONTENT - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 204: No Content.
- HTTP_NOT_ACCEPTABLE - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 406: Not Acceptable.
- HTTP_NOT_AUTHORITATIVE - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 203: Non-Authoritative Information.
- HTTP_NOT_FOUND - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 404: Not Found.
- HTTP_NOT_IMPLEMENTED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 501: Not Implemented.
- HTTP_NOT_MODIFIED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 304: Not Modified.
- HTTP_OK - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 200: OK.
- HTTP_PARTIAL - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 206: Partial Content.
- HTTP_PAYMENT_REQUIRED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 402: Payment Required.
- HTTP_PRECON_FAILED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 412: Precondition Failed.
- HTTP_PROXY_AUTH - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 407: Proxy Authentication Required.
- HTTP_REQ_TOO_LONG - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 414: Request-URI Too Large.
- HTTP_RESET - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 205: Reset Content.
- HTTP_SEE_OTHER - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 303: See Other.
- HTTP_UNAUTHORIZED - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 401: Unauthorized.
- HTTP_UNAVAILABLE - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 503: Service Unavailable.
- HTTP_UNSUPPORTED_TYPE - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 415: Unsupported Media Type.
- HTTP_USE_PROXY - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 305: Use Proxy.
- HTTP_VERSION - 类 中的静态变量cn.hutool.http.HttpStatus
-
HTTP Status-Code 505: HTTP Version Not Supported.
- HttpBase<T> - cn.hutool.http中的类
-
http基类
- HttpBase() - 类 的构造器cn.hutool.http.HttpBase
-
- HttpConnection - cn.hutool.http中的类
-
http连接对象,对HttpURLConnection的包装
- HttpConnection(URL, Proxy) - 类 的构造器cn.hutool.http.HttpConnection
-
构造HttpConnection
- httpConnection - 类 中的变量cn.hutool.http.HttpResponse
-
持有连接对象
- HttpException - cn.hutool.http中的异常错误
-
HTTP异常
- HttpException(Throwable) - 异常错误 的构造器cn.hutool.http.HttpException
-
- HttpException(String) - 异常错误 的构造器cn.hutool.http.HttpException
-
- HttpException(String, Object...) - 异常错误 的构造器cn.hutool.http.HttpException
-
- HttpException(String, Throwable) - 异常错误 的构造器cn.hutool.http.HttpException
-
- HttpException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.http.HttpException
-
- HttpGlobalConfig - cn.hutool.http中的类
-
HTTP 全局参数配置
- HttpGlobalConfig() - 类 的构造器cn.hutool.http.HttpGlobalConfig
-
- HttpInputStream - cn.hutool.http中的类
-
HTTP输入流,此流用于包装Http请求响应内容的流,用于解析各种压缩、分段的响应流内容
- HttpInputStream(HttpResponse) - 类 的构造器cn.hutool.http.HttpInputStream
-
构造
- HttpRequest - cn.hutool.http中的类
-
http请求类
Http请求类用于构建Http请求并同步获取结果,此类通过CookieManager持有域名对应的Cookie值,再次请求时会自动附带Cookie信息
- HttpRequest(String) - 类 的构造器cn.hutool.http.HttpRequest
-
构造,URL编码默认使用UTF-8
- HttpRequest(UrlBuilder) - 类 的构造器cn.hutool.http.HttpRequest
-
构造
- HttpResponse - cn.hutool.http中的类
-
Http响应类
非线程安全对象
- HttpResponse(HttpConnection, Charset, boolean, boolean) - 类 的构造器cn.hutool.http.HttpResponse
-
构造
- HttpServerBase - cn.hutool.http.server中的类
-
HttpServer公用对象,提供HttpExchange包装和公用方法
- HttpServerBase(HttpExchange) - 类 的构造器cn.hutool.http.server.HttpServerBase
-
构造
- HttpServerRequest - cn.hutool.http.server中的类
-
Http请求对象,对HttpExchange
封装
- HttpServerRequest(HttpExchange) - 类 的构造器cn.hutool.http.server.HttpServerRequest
-
构造
- HttpServerResponse - cn.hutool.http.server中的类
-
Http响应对象,用于写出数据到客户端
- HttpServerResponse(HttpExchange) - 类 的构造器cn.hutool.http.server.HttpServerResponse
-
构造
- HttpStatus - cn.hutool.http中的类
-
HTTP状态码
- HttpStatus() - 类 的构造器cn.hutool.http.HttpStatus
-
- HttpUtil - cn.hutool.http中的类
-
Http请求工具类
- HttpUtil() - 类 的构造器cn.hutool.http.HttpUtil
-
- httpVersion - 类 中的变量cn.hutool.http.HttpBase
-
http版本
- httpVersion() - 类 中的方法cn.hutool.http.HttpBase
-
返回http版本
- httpVersion(String) - 类 中的方法cn.hutool.http.HttpBase
-
设置http版本