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 HeadersHttpExchange.getRequestHeaders()Returns an immutableHeaderscontaining the HTTP headers that were included with this request.Request.getRequestHeaders()Returns an immutableHeaderscontaining the HTTP headers that were included with this request.abstract HeadersHttpExchange.getResponseHeaders()Returns a mutableHeadersinto which the HTTP response headers can be stored and which will be transmitted as part of this response.static HeadersReturns an immutableHeaderswith the given name value pairs as its set of headers.static HeadersReturns an immutableHeadersfrom the givenheaderswith the same header names and values.Methods in com.sun.net.httpserver with parameters of type HeadersModifier and TypeMethodDescriptionstatic HttpHandlerReturns anHttpHandlerthat sends a response comprising the givenstatusCode,headers, andbody.