| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final TagExtractor | |
| pack-priv static final TagExtractor | |
| pack-priv static final HttpClosedException | |
| private static final int | |
| pack-priv static final StreamPriority | |
| pack-priv static final String | |
| private static final Consumer | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final TagExtractor | |
| pack-priv static final TagExtractor | |
| private static final String[] | |
| pack-priv static final HttpClosedException | |
| private static final AsciiString | |
| pack-priv static final String | |
| private static final boolean[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | |
| public static boolean | |
| pack-priv static Http2Settings | |
| private static void | |
| private static void | |
| public static String | |
| public static void | |
| public static Http2Settings | |
| public static ByteBuf | |
| pack-priv static String | |
| private static int | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| private static boolean | |
| private static boolean | |
| public static String | |
| private static String | |
| pack-priv static MultiMap | |
| public static int | |
| pack-priv static String | |
| pack-priv static String | parseQuery(String uri)
Extract the query out of a uri or returns the empty string if no query was found. |
| public static String | positiveLongToString(long value)
This try hard to cache the first 256 positive longs as strings [0, 255] to avoid the cost of creating a new string for each of them. |
| public static String | |
| pack-priv static void | resolveFile(VertxInternal vertx, String filename, long offset, long length, Handler<AsyncResult<AsyncFile>> resultHandler)
|
| public static URI | |
| public static URI | |
| pack-priv static void | |
| pack-priv static void | |
| public static HostAndPort | Returns: The converted instance ornull if not applicable.The socket address to convert socketAddress)Convert a |
| private static CharSequence | |
| public static CharSequence | Returns: convert thesequence to a lower case instanceThis is optimized for Http headers, which are usually in the form: eg Content-Length, content-length |
| private static CharSequence | |
| pack-priv static HttpVersion | |
| pack-priv static HttpMethod | |
| public static Http2Settings | |
| pack-priv static boolean | |
| private static void | |
| private static void | |
| private static void | validateAsciiRangeHeaderValue(AsciiString value, int off, int length, byte[] asciiChars)
This method is the slow-path generic version of |
| private static int | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | validateSequenceHeaderValue(CharSequence seq, int index)
This method is taken as we need to validate the header value for the non-printable characters. |
| private static void | |
| private static void | |
| private static int |
| CLIENT_HTTP_REQUEST_TAG_EXTRACTOR | back to summary |
|---|---|
| pack-priv static final TagExtractor<HttpRequestHead> CLIENT_HTTP_REQUEST_TAG_EXTRACTOR | |
| CLIENT_RESPONSE_TAG_EXTRACTOR | back to summary |
|---|---|
| pack-priv static final TagExtractor<HttpResponseHead> CLIENT_RESPONSE_TAG_EXTRACTOR | |
| CONNECTION_CLOSED_EXCEPTION | back to summary |
|---|---|
| pack-priv static final HttpClosedException CONNECTION_CLOSED_EXCEPTION | |
| CR_STATE | back to summary |
|---|---|
| private static final int CR_STATE | |
| DEFAULT_STREAM_PRIORITY | back to summary |
|---|---|
| pack-priv static final StreamPriority DEFAULT_STREAM_PRIORITY | |
| H2_STREAM_BYTE_DISTRIBUTOR | back to summary |
|---|---|
| pack-priv static final String H2_STREAM_BYTE_DISTRIBUTOR | |
| HEADER_VALUE_VALIDATOR | back to summary |
|---|---|
| private static final Consumer<CharSequence> HEADER_VALUE_VALIDATOR | |
| HIGHEST_INVALID_VALUE_CHAR_MASK | back to summary |
|---|---|
| private static final int HIGHEST_INVALID_VALUE_CHAR_MASK | |
| LF_STATE | back to summary |
|---|---|
| private static final int LF_STATE | |
| NO_CR_LF_STATE | back to summary |
|---|---|
| private static final int NO_CR_LF_STATE | |
| SC_BAD_GATEWAY | back to summary |
|---|---|
| pack-priv static final int SC_BAD_GATEWAY | |
| SC_SWITCHING_PROTOCOLS | back to summary |
|---|---|
| pack-priv static final int SC_SWITCHING_PROTOCOLS | |
| SERVER_REQUEST_TAG_EXTRACTOR | back to summary |
|---|---|
| pack-priv static final TagExtractor<HttpServerRequest> SERVER_REQUEST_TAG_EXTRACTOR | |
| SERVER_RESPONSE_TAG_EXTRACTOR | back to summary |
|---|---|
| pack-priv static final TagExtractor<HttpServerResponse> SERVER_RESPONSE_TAG_EXTRACTOR | |
| SMALL_POSITIVE_LONGS | back to summary |
|---|---|
| private static final String[] SMALL_POSITIVE_LONGS | |
| STREAM_CLOSED_EXCEPTION | back to summary |
|---|---|
| pack-priv static final HttpClosedException STREAM_CLOSED_EXCEPTION | |
| TIMEOUT_EQ | back to summary |
|---|---|
| private static final AsciiString TIMEOUT_EQ | |
| UNIFORM_DISTRIBUTOR | back to summary |
|---|---|
| pack-priv static final String UNIFORM_DISTRIBUTOR | |
| VALID_H_NAME_ASCII_CHARS | back to summary |
|---|---|
| private static final boolean[] VALID_H_NAME_ASCII_CHARS | |
| HttpUtils | back to summary |
|---|---|
| private HttpUtils() | |
| absoluteURI | back to summary |
|---|---|
| pack-priv static String absoluteURI(String serverOrigin, HttpServerRequest req) | |
| canUpgradeToWebSocket | back to summary |
|---|---|
| public static boolean canUpgradeToWebSocket(HttpServerRequest req) | |
| decodeSettings | back to summary |
|---|---|
| pack-priv static Http2Settings decodeSettings(String base64Settings) | |
| decodeUnreserved | back to summary |
|---|---|
| private static void decodeUnreserved(StringBuilder path, int start) | |
| decodeUnreservedChars | back to summary |
|---|---|
| private static void decodeUnreservedChars(StringBuilder path, int start) | |
| encodeSettings | back to summary |
|---|---|
| public static String encodeSettings(Http2Settings settings) | |
| fromVertxInitialSettings | back to summary |
|---|---|
| public static void fromVertxInitialSettings(boolean server, Http2Settings vertxSettings, Http2Settings nettySettings) | |
| fromVertxSettings | back to summary |
|---|---|
| public static Http2Settings fromVertxSettings(Http2Settings settings) | |
| generateWSCloseFrameByteBuf | back to summary |
|---|---|
| public static ByteBuf generateWSCloseFrameByteBuf(short statusCode, String reason) | |
| getWebSocketLocation | back to summary |
|---|---|
| pack-priv static String getWebSocketLocation(HttpServerRequest req, boolean ssl) throws Exception | |
| indexOfSlash | back to summary |
|---|---|
| private static int indexOfSlash(CharSequence str, int start) | |
| isConnectOrUpgrade | back to summary |
|---|---|
| pack-priv static boolean isConnectOrUpgrade(HttpMethod method, MultiMap headers) | |
| isKeepAlive | back to summary |
|---|---|
| pack-priv static boolean isKeepAlive(HttpRequest request) | |
| isValidHostAuthority | back to summary |
|---|---|
| public static boolean isValidHostAuthority(String host) | |
| isValidMultipartContentType | back to summary |
|---|---|
| public static boolean isValidMultipartContentType(String contentType) | |
| isValidMultipartMethod | back to summary |
|---|---|
| public static boolean isValidMultipartMethod(HttpMethod method) | |
| matches | back to summary |
|---|---|
| private static boolean matches(CharSequence path, int start, String what) | |
| matches | back to summary |
|---|---|
| private static boolean matches(CharSequence path, int start, String what, boolean exact) | |
| normalizePath | back to summary |
|---|---|
| public static String normalizePath(String pathname) Normalizes a path as per rfc3986. There are 2 extra transformations that are not part of the spec but kept for backwards compatibility: double slash // will be converted to single slash and the path will always start with slash. Null paths are not normalized as nothing can be said about them. | |
| normalizePathSlow | back to summary |
|---|---|
| private static String normalizePathSlow(String pathname, int indexOfFirstPercent) | |
| params | back to summary |
|---|---|
| pack-priv static MultiMap params(String uri, Charset charset, boolean semicolonIsNormalChar) | |
| parseKeepAliveHeaderTimeout | back to summary |
|---|---|
| public static int parseKeepAliveHeaderTimeout(CharSequence value) | |
| parsePath | back to summary |
|---|---|
| pack-priv static String parsePath(String uri) Extract the path out of the uri. | |
| parseQuery | back to summary |
|---|---|
| pack-priv static String parseQuery(String uri) Extract the query out of a uri or returns the empty string if no query was found. | |
| positiveLongToString | back to summary |
|---|---|
| public static String positiveLongToString(long value) This try hard to cache the first 256 positive longs as strings [0, 255] to avoid the cost of creating a new
string for each of them. | |
| removeDots | back to summary |
|---|---|
| public static String removeDots(CharSequence path) Removed dots as per rfc3986. There is 1 extra transformation that are not part of the spec but kept for backwards compatibility: double slash // will be converted to single slash.
| |
| resolveFile | back to summary |
|---|---|
| pack-priv static void resolveFile(VertxInternal vertx, String filename, long offset, long length, Handler<AsyncResult<AsyncFile>> resultHandler) | |
| resolveURIReference | back to summary |
|---|---|
| public static URI resolveURIReference(String base, String ref) throws URISyntaxException Resolve an URI reference as per rfc3986 | |
| resolveURIReference | back to summary |
|---|---|
| public static URI resolveURIReference(URI base, String ref) throws URISyntaxException Resolve an URI reference as per rfc3986 | |
| sendError | back to summary |
|---|---|
| pack-priv static void sendError(Channel ch, HttpResponseStatus status) | |
| sendError | back to summary |
|---|---|
| pack-priv static void sendError(Channel ch, HttpResponseStatus status, CharSequence err) | |
| socketAddressToHostAndPort | back to summary |
|---|---|
| public static HostAndPort socketAddressToHostAndPort(SocketAddress socketAddress) Convert a
| |
| toCharSequenceLowerCase | back to summary |
|---|---|
| private static CharSequence toCharSequenceLowerCase(CharSequence sequence) | |
| toLowerCase | back to summary |
|---|---|
| public static CharSequence toLowerCase(CharSequence sequence) This is optimized for Http headers, which are usually in the form:
| |
| toLowerCase | back to summary |
|---|---|
| private static CharSequence toLowerCase(char[] chars, int firstUpperCase, int length) | |
| toNettyHttpVersion | back to summary |
|---|---|
| pack-priv static HttpVersion toNettyHttpVersion(HttpVersion version) | |
| toVertxMethod | back to summary |
|---|---|
| pack-priv static HttpMethod toVertxMethod(String method) | |
| toVertxSettings | back to summary |
|---|---|
| public static Http2Settings toVertxSettings(Http2Settings settings) | |
| useH2UniformStreamByteDistributor | back to summary |
|---|---|
| pack-priv static boolean useH2UniformStreamByteDistributor() | |
| validateAsciiHeaderName | back to summary |
|---|---|
| private static void validateAsciiHeaderName(AsciiString value) | |
| validateAsciiHeaderValue | back to summary |
|---|---|
| private static void validateAsciiHeaderValue(AsciiString value) | |
| validateAsciiRangeHeaderValue | back to summary |
|---|---|
| private static void validateAsciiRangeHeaderValue(AsciiString value, int off, int length, byte[] asciiChars) This method is the slow-path generic version of | |
| validateCrLfChar | back to summary |
|---|---|
| private static int validateCrLfChar(CharSequence seq, int state, char ch) | |
| validateHeader | back to summary |
|---|---|
| public static void validateHeader(CharSequence name, CharSequence value) | |
| validateHeader | back to summary |
|---|---|
| public static void validateHeader(CharSequence name, Iterable<? extends CharSequence> values) | |
| validateHeaderName | back to summary |
|---|---|
| public static void validateHeaderName(CharSequence value) | |
| validateHeaderValue | back to summary |
|---|---|
| public static void validateHeaderValue(CharSequence value) | |
| validateNonPrintableCtrlChar | back to summary |
|---|---|
| private static void validateNonPrintableCtrlChar(CharSequence seq, int ch) | |
| validateSequenceHeaderName | back to summary |
|---|---|
| private static void validateSequenceHeaderName(CharSequence value) | |
| validateSequenceHeaderValue | back to summary |
|---|---|
| private static void validateSequenceHeaderValue(CharSequence value) | |
| validateSequenceHeaderValue | back to summary |
|---|---|
| private static void validateSequenceHeaderValue(CharSequence seq, int index) This method is taken as we need to validate the header value for the non-printable characters. | |
| validateStringHeaderName | back to summary |
|---|---|
| private static void validateStringHeaderName(String value) | |
| validateStringHeaderValue | back to summary |
|---|---|
| private static void validateStringHeaderValue(String value) | |
| validateValueChar | back to summary |
|---|---|
| private static int validateValueChar(CharSequence seq, int state, char ch) | |