Package io.micronaut.http.netty.content
Class HttpContentUtil
java.lang.Object
io.micronaut.http.netty.content.HttpContentUtil
Utility methods for generated HTTP content.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte[]
static final byte[]
static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.handler.codec.http.HttpContent
static io.netty.handler.codec.http.HttpContent
prefixComma
(io.netty.handler.codec.http.HttpContent httpContent) static io.netty.handler.codec.http.HttpContent
prefixOpenBracket
(io.netty.handler.codec.http.HttpContent httpContent)
-
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
-