Interface ClientResponseTyped<T>
- Type Parameters:
T- type of the response
public interface ClientResponseTyped<T>
Http client response explicitly typed.
The typed entity does not extend
AutoCloseable, as in most cases the entity is fully read into memory.
Kindly make sure that you fully consume the entity in cases where it cannot be buffered (depends on media support used).-
Method Summary
-
Method Details
-
entity
-
close
void close()Closes the response. This may have no impact on the underlying connection. Response is implicitly closed if the entity is fully read. -
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
-