Class NettyHttpServerResponse

java.lang.Object
eu.cloudnetservice.driver.network.netty.http.NettyHttpMessage
eu.cloudnetservice.driver.network.netty.http.NettyHttpServerResponse
All Implemented Interfaces:
HttpMessage<HttpResponse>, HttpResponse

final class NettyHttpServerResponse extends NettyHttpMessage implements HttpResponse
The default netty based implementation of a http response.
Since:
4.0
  • Field Details

    • httpResponse

      final io.netty5.handler.codec.http.FullHttpResponse httpResponse
    • context

      private final NettyHttpServerContext context
    • responseInputStream

      private InputStream responseInputStream
  • Constructor Details

    • NettyHttpServerResponse

      public NettyHttpServerResponse(@NonNull @NonNull NettyHttpServerContext context, @NonNull @NonNull io.netty5.handler.codec.http.HttpRequest httpRequest)
      Constructs a new netty http response instance.
      Parameters:
      context - the context in which the request (and this response to the request) is handled.
      httpRequest - the original unwrapped request sent to the server.
      Throws:
      NullPointerException - if either the context or request is null.
  • Method Details