Interface Http2ClientResponse
- All Superinterfaces:
AutoCloseable, HttpClientResponse
Response of HTTP/2 client.
-
Method Summary
Methods inherited from interface HttpClientResponse
as, close, entity, inputStream, sourceModifier and TypeMethodDescriptiondefault <T> TRead the entity as a specific type.voidclose()Closes the response.entity()Response entity.default InputStreamEntity input stream.default <T extends Source<?>>
voidsource(GenericType<T> sourceType, T source) Registers a source listener for this response.
-
Method Details
-
protocolId
Protocol selected by WebClient for this response.The default implementation returns
http/1.1.- Returns:
- protocol identifier, such as
http/1.1,h2, orh3
-
status
-
headers
-
trailers
ClientResponseTrailers trailers()Response trailer headers. Blocks until trailers are available.- Returns:
- trailers
- Throws:
IllegalStateException- when invoked before entity is requested
-
lastEndpointUri
-