Uses of Class
com.sun.net.httpserver.Headers
Packages that use Headers
Package
Description
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 HeadersModifier and TypeMethodDescriptionabstract 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 HeadersModifier and TypeMethodDescriptionstatic HttpHandler
Returns anHttpHandler
that sends a response comprising the givenstatusCode
,headers
, andbody
.