Class NettyMutableHttpResponse<B>

java.lang.Object
io.micronaut.http.netty.NettyMutableHttpResponse<B>
Type Parameters:
B - The response body
All Implemented Interfaces:
AttributeHolder, MutableAttributeHolder, HttpMessage<B>, HttpResponse<B>, MutableHttpMessage<B>, MutableHttpResponse<B>, NettyHttpResponseBuilder

@Internal public final class NettyMutableHttpResponse<B> extends Object implements MutableHttpResponse<B>, NettyHttpResponseBuilder
Delegates to Netty's FullHttpResponse.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • NettyMutableHttpResponse

      public NettyMutableHttpResponse(io.netty.handler.codec.http.FullHttpResponse nettyResponse, ConversionService conversionService)
      Parameters:
      nettyResponse - The FullHttpResponse
      conversionService - The conversion service
    • NettyMutableHttpResponse

      public NettyMutableHttpResponse(ConversionService conversionService)
      Parameters:
      conversionService - The conversion service
    • NettyMutableHttpResponse

      public NettyMutableHttpResponse(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, ConversionService conversionService)
      Creates a new instance.
      Parameters:
      httpVersion - The http version
      httpResponseStatus - THe http response status
      conversionService - The conversion service
    • NettyMutableHttpResponse

      public NettyMutableHttpResponse(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, Object body, ConversionService conversionService)
      Creates a new instance.
      Parameters:
      httpVersion - The http version
      httpResponseStatus - THe http response status
      body - The body
      conversionService - The conversion service
    • NettyMutableHttpResponse

      public NettyMutableHttpResponse(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpResponseStatus httpResponseStatus, io.netty.handler.codec.http.HttpHeaders nettyHeaders, Object body, ConversionService conversionService)
      Creates a new instance.
      Parameters:
      httpVersion - The http version
      httpResponseStatus - THe http response status
      nettyHeaders - The http headers
      body - The body
      conversionService - The conversion service
  • Method Details