HeadersFrame.
HeadersFrame
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Buffer | |
| public CompressedHeadersBuilder | contentLength(long
the content-length of this contentLength)HttpPacket. Applicable only in case of fixed-length HTTP
message.Set the content-length of this header. |
| public CompressedHeadersBuilder | contentType(String
the content-type of this contentType)HttpPacket.Set the content-type of this header. |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public static CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | status(HttpStatus
the status of this header. status)Set the HTTP response status code (e.g. "200" or "200 OK") |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder | |
| public CompressedHeadersBuilder |
| headers | back to summary |
|---|---|
| private final Map<String, String> headers | |
| CompressedHeadersBuilder | back to summary |
|---|---|
| private CompressedHeadersBuilder() | |
| build | back to summary |
|---|---|
| public Buffer build(final HeadersEncoder encoder) throws IOException | |
| contentLength | back to summary |
|---|---|
| public CompressedHeadersBuilder contentLength(long contentLength) Set the content-length of this header. Applicable only in case of fixed-length HTTP message.
| |
| contentType | back to summary |
|---|---|
| public CompressedHeadersBuilder contentType(String contentType) Set the content-type of this header.
| |
| header | back to summary |
|---|---|
| public CompressedHeadersBuilder header(String name, String value) Add the HTTP mime header. | |
| header | back to summary |
|---|---|
| public CompressedHeadersBuilder header(Header header, String value) Add the HTTP mime header. | |
| host | back to summary |
|---|---|
| public CompressedHeadersBuilder host(String host) Set the the host/port (See RFC1738 [RFC1738]) portion of the URL for this request header (e.g. "www.google.com:1234"). This header is the same as the HTTP 'Host' header.
| |
| method | back to summary |
|---|---|
| public CompressedHeadersBuilder method(final Method method) Set the the HTTP method for this request. (e.g. "GET", "POST", "HEAD", etc).
| |
| method | back to summary |
|---|---|
| public CompressedHeadersBuilder method(String method) Set the the HTTP method for this request. (e.g. "GET", "POST", "HEAD", etc).
| |
| newInstance | back to summary |
|---|---|
| public static CompressedHeadersBuilder newInstance() Returns the | |
| path | back to summary |
|---|---|
| public CompressedHeadersBuilder path(String path) Set the url-path for required url with "/" prefixed. (See RFC1738 [RFC1738]). For example, for "http://www.google.com/search?q=dogs" the path would be "/search?q=dogs".
| |
| scheme | back to summary |
|---|---|
| public CompressedHeadersBuilder scheme(String scheme) Set the scheme portion of the URL for this request header (e.g. "https").
| |
| status | back to summary |
|---|---|
| public CompressedHeadersBuilder status(int status) Set the HTTP response status code (e.g. 200 or 404).
| |
| status | back to summary |
|---|---|
| public CompressedHeadersBuilder status(HttpStatus status) Set the HTTP response status code (e.g. "200" or "200 OK")
| |
| status | back to summary |
|---|---|
| public CompressedHeadersBuilder status(final String status) Set the HTTP response status code (e.g. "200" or "200 OK")
| |
| version | back to summary |
|---|---|
| public CompressedHeadersBuilder version(Protocol version) Set the the HTTP version of this request (e.g. "HTTP/1.1").
| |
| version | back to summary |
|---|---|
| public CompressedHeadersBuilder version(String version) Set the the HTTP version of this request (e.g. "HTTP/1.1").
| |