Interface NettyCustomizableResponseType

All Superinterfaces:
CustomizableResponseType
All Known Subinterfaces:
NettyFileCustomizableResponseType, NettyStreamedCustomizableResponseType
All Known Implementing Classes:
NettyStreamedFileCustomizableResponseType, NettySystemFileCustomizableResponseType

@Internal public interface NettyCustomizableResponseType extends CustomizableResponseType
A special type that allows writing data in Netty.
Since:
1.0
Author:
James Kleeh
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.channel.ChannelFuture
    write(HttpRequest<?> request, MutableHttpResponse<?> response, io.netty.channel.ChannelHandlerContext context)
    Write this instance to Netty.

    Methods inherited from interface io.micronaut.http.server.types.CustomizableResponseType

    process
  • Method Details

    • write

      io.netty.channel.ChannelFuture write(HttpRequest<?> request, MutableHttpResponse<?> response, io.netty.channel.ChannelHandlerContext context)
      Write this instance to Netty.
      Parameters:
      request - The request
      response - The response
      context - The Netty ChannelHandlerContext
      Returns:
      The netty future that completes when the response is fully written.