Class DirectHandler.TransportResponse

java.lang.Object
io.helidon.http.DirectHandler.TransportResponse
Enclosing interface:
DirectHandler

public static class DirectHandler.TransportResponse extends Object
Response to correctly reply to the original client.
  • Method Details

    • builder

      public static DirectHandler.TransportResponse.Builder builder()
      A builder to set up a custom response.
      Returns:
      builder
    • status

      public Status status()
      Configured status.
      Returns:
      status
    • headers

      public ServerResponseHeaders headers()
      Configured headers.
      Returns:
      headers
    • entity

      public Optional<byte[]> entity()
      Configured message.
      Returns:
      mesage bytes or empty if no message is configured
    • keepAlive

      public boolean keepAlive()
      Whether the connection should use keep alive.
      Returns:
      keep alive