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

    Modifier and Type
    Method
    Description
    void
    Closes the response.
    Entity of the requested type.
    io.helidon.http.ClientResponseHeaders
    Response headers.
    URI of the last request.
    io.helidon.http.Status
    Response status.
    io.helidon.http.ClientResponseTrailers
    Response trailer headers.
  • Method Details

    • entity

      T entity()
      Entity of the requested type.
      Returns:
      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.
    • status

      io.helidon.http.Status status()
      Response status.
      Returns:
      status
    • headers

      io.helidon.http.ClientResponseHeaders headers()
      Response headers.
      Returns:
      headers
    • trailers

      io.helidon.http.ClientResponseTrailers trailers()
      Response trailer headers. Blocks until trailers are available.
      Returns:
      trailers
      Throws:
      IllegalStateException - when invoked before entity is requested
    • lastEndpointUri

      ClientUri lastEndpointUri()
      URI of the last request. (after redirection)
      Returns:
      last URI