Class HttpContentUtil

java.lang.Object
io.micronaut.http.netty.content.HttpContentUtil

@Internal public class HttpContentUtil extends Object
Utility methods for generated HTTP content.
Since:
1.0
Author:
graemerocher
  • Field Details

    • OPEN_BRACKET

      public static final byte[] OPEN_BRACKET
    • CLOSE_BRACKET

      public static final byte[] CLOSE_BRACKET
    • COMMA

      public static final byte[] COMMA
  • Constructor Details

    • HttpContentUtil

      public HttpContentUtil()
  • Method Details

    • closeBracket

      public static io.netty.handler.codec.http.HttpContent closeBracket()
      Returns:
      Produces HTTP content for ]
    • prefixComma

      public static io.netty.handler.codec.http.HttpContent prefixComma(io.netty.handler.codec.http.HttpContent httpContent)
      Parameters:
      httpContent - The http content to prefix
      Returns:
      Produces HTTP content for ]
    • prefixOpenBracket

      public static io.netty.handler.codec.http.HttpContent prefixOpenBracket(io.netty.handler.codec.http.HttpContent httpContent)
      Parameters:
      httpContent - The http content to prefix
      Returns:
      Produces HTTP content prefixed by an open bracket