Interface NettyWriteContext

All Known Subinterfaces:
OutboundAccess
All Known Implementing Classes:
PipeliningServerHandler.OutboundAccessImpl

@Internal public interface NettyWriteContext
This interface is used to write the different kinds of netty responses.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(@NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull ByteBody body)
    Write a response.
    void
    writeHeadResponse(@NonNull io.netty.handler.codec.http.HttpResponse response)
    Write a response to a HEAD request.
  • Method Details

    • write

      void write(@NonNull @NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull @NonNull ByteBody body)
      Write a response.
      Parameters:
      response - The response status, headers etc
      body - The response body
    • writeHeadResponse

      void writeHeadResponse(@NonNull @NonNull io.netty.handler.codec.http.HttpResponse response)
      Write a response to a HEAD request. This is special because it never has a body but may still have a non-zero Content-Length header.
      Parameters:
      response - The response status, headers etc