Create a http.MethodBuilder for a given destination.
Create a http.MethodBuilder for a given destination.
Create a http.MethodBuilder for a given destination.
Create a http.MethodBuilder for a given destination.
The compression level to use.
The compression level to use. If passed the default value (-1) then it will use
TextualContentCompressor
which will compress text-like content-types with the default compression level (6).
Otherwise, use Netty HttpContentCompressor
for all content-types with specified
compression level.
Enables decompression of http content bodies.
Enable HTTP/2
Enable HTTP/2
this will override whatever has been set in the toggle.
Enable the collection of HTTP specific metrics.
Enable the collection of HTTP specific metrics. See http.filter.StatsFilter.
For HTTP1*, configures the max size of headers For HTTP2, sets the MAX_HEADER_LIST_SIZE setting which is the maximum number of uncompressed bytes of header name/values.
For HTTP1*, configures the max size of headers For HTTP2, sets the MAX_HEADER_LIST_SIZE setting which is the maximum number of uncompressed bytes of header name/values. These may be set independently via the .configured API.
Configures the maximum initial line length the client can receive from a server.
Configures the maximum request size that the client can send.
Configures the maximum response size that client can receive.
Disable HTTP/2
Disable HTTP/2
this will override whatever has been set in the toggle.
Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.
Streaming allows applications to work with HTTP messages that have large
(or infinite) content bodies. When this set to true
, the message content is
available through a com.twitter.io.Reader, which gives the application a
handle to the byte stream. If false
, the entire message content is buffered
into a com.twitter.io.Buf.