Uses of Class
com.sun.net.httpserver.Headers
Packages that use Headers
包
描述
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
-
Uses of Headers in com.sun.net.httpserver
Methods in com.sun.net.httpserver that return Headers修饰符和类方法描述abstract Headers
HttpExchange.getRequestHeaders()
Returns an immutableHeaders
containing the HTTP headers that were included with this request.Request.getRequestHeaders()
Returns an immutableHeaders
containing the HTTP headers that were included with this request.abstract Headers
HttpExchange.getResponseHeaders()
Returns a mutableHeaders
into which the HTTP response headers can be stored and which will be transmitted as part of this response.static Headers
Returns an immutableHeaders
with the given name value pairs as its set of headers.static Headers
Returns an immutableHeaders
from the givenheaders
with the same header names and values.Methods in com.sun.net.httpserver with parameters of type Headers修饰符和类方法描述static HttpHandler
Returns anHttpHandler
that sends a response comprising the givenstatusCode
,headers
, andbody
.