| Modifier and Type | Class and Description |
|---|---|
| public static record | |
| public static class | |
| public static class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final BiPredicate | |
| private static final Predicate | |
| public static final BiPredicate | |
| public static final BiPredicate | |
| public static final boolean | |
| public static final int | BUFSIZE
The capacity of ephemeral |
| private static final int | COPY_THRESHOLD
Threshold beyond which data is no longer copied into the current buffer, if that buffer has enough unused space. |
| public static final boolean | |
| public static final DebugLogger. | |
| public static final DebugLogger. | |
| public static final boolean | |
| public static final DebugLogger. | |
| private static final Set | |
| private static final Set | |
| public static final ByteBuffer[] | |
| public static final List | |
| public static final ByteBuffer | |
| private static final boolean[] | |
| private static final String | |
| private static final String | |
| private static final Predicate | |
| private static final Predicate | |
| public static final boolean | |
| private static final boolean[] | |
| private static final Predicate | |
| public static final BiPredicate | |
| private static final ConcurrentHashMap | |
| private static final Set | |
| private static final Set | |
| public static final BiPredicate | |
| public static final BiPredicate | |
| public static final int | |
| private static final boolean[] | |
| public static final boolean | |
| public static final BiPredicate | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: the number of bytes addedAdds the data from buffersToAdd to currentList. |
| public static String | Returns: a message describing the conflict, if any, ornull if no
conflict was detected.local address local, SocketAddress peer address peer)Try to figure out whether local and remote addresses are compatible. |
| public static <T extends Throwable> T | |
| public static String | Returns: the content of the buffer as an hexadecimal stringa byte buffer buffer)Returns the content of the buffer as an hexadecimal string. |
| public static String | Returns: a string built from the bytes contained in the buffer decoded using the given charseta buffer containing bytes encoded using
a charset buffer, Charset the charset to use to decode the bytes
into a string charset)Converts a ByteBuffer containing bytes encoded using the given charset into a string. |
| public static String | Returns: a string built from the decoded UTF-8 bytes contained in the buffera buffer containing UTF-8 bytes buffer)Converts a ByteBuffer containing UTF-8 bytes into a string. |
| public static Charset | |
| public static void | |
| public static <T extends NetworkChannel> T | |
| public static int | |
| public static ByteBuffer | |
| public static ByteBuffer | |
| public static Proxy | copyProxy(Proxy proxy)
Creates a new |
| public static SSLParameters | |
| public static HttpHeaders | Returns: pseudo headers for that requestthe request request)Creates HTTP/2 HTTP/3 pseudo headers for the given request. |
| public static String | Returns: a string comparing the given deadline with now, typically something like "due since Nms" or "due in Nms"now now, Deadline the deadline deadline)Returns a string comparing the given deadline with now, typically something like "due since Nms" or "due in Nms". |
| public static String | |
| public static String | |
| public static String | |
| public static Throwable | Returns: the exception the givencf was completed with,
or a CancellationException if the given cf was
cancelleda cf)CompletableFuture exceptionally completedReturns the exception the given |
| public static void | |
| public static boolean | |
| public static ByteBuffer | |
| public static ByteBuffer | Returns: a newByteBuffer instance whose capacity is set to the
smaller of the specified maxCapacity and the default
(BUFSIZE)a buffer capacity, in bytes maxCapacity)Returns a new |
| public static Throwable | |
| public static Throwable | |
| public static Logger | Returns: A logger for HTTP internal debug tracesA lambda that returns a string that identifies the caller
(e.g: "SocketTube(3)", or "Http2Connection(SocketTube(3))") dbgTag)Get a logger for debug HTTP traces. |
| public static Logger | Returns: A logger for HTTP internal debug tracesA lambda that returns a string that identifies the caller
(e.g: "SocketTube(3)", or "Http2Connection(SocketTube(3))") dbgTag, boolean Whether the logger is enabled. on)Get a logger for debug HTTP traces.The logger should only be used
with levels whose severity is |
| private static Set | |
| private static Set | |
| public static Logger | Returns: A logger for HPACK internal debug tracesA lambda that returns a string that identifies the caller
(e.g: "Http2Connection(SocketTube(3))/hpack.Decoder(3)") dbgTag, System.The level above which messages will be also printed on
stderr (in addition to be forwarded to the internal logger). errLevelGet a logger for debug HPACK traces.The logger should only be used
with levels whose severity is |
| public static Logger | Returns: A logger for HPACK internal debug tracesA lambda that returns a string that identifies the caller
(e.g: "Http2Connection(SocketTube(3))/hpack.Decoder(3)") dbgTag)Get a logger for debug HPACK traces.The logger should only be used
with levels whose severity is |
| public static int | |
| public static int | |
| public static int | |
| public static IOException | |
| private static DebugLogger. | |
| public static long | |
| public static String | |
| public static String | |
| public static int | |
| public static int | |
| public static Logger | Returns: A logger for WebSocket internal debug tracesA lambda that returns a string that identifies the caller
(e.g: "WebSocket(3)") dbgTag)Get a logger for debug WebSocket traces.The logger should only be used
with levels whose severity is |
| public static boolean | |
| public static boolean | |
| private static boolean | |
| public static SSLSession | |
| public static String | |
| private static final boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static String | |
| public static String | |
| public static long | Returns: the relative consolidated position in bytes at which the two input mismatch, or -1L if there is no mismatch.a first list of byte buffers these, List<ByteBuffer> a second list of byte buffers those)Compute the relative consolidated position in bytes at which the two input mismatch, or -1 if there is no mismatch. |
| public static IllegalArgumentException | |
| public static ByteBuffer | Returns: the next buffer that has remaining bytes, or nullan iterator iterator)Returns the next buffer that has remaining bytes, or null. |
| public static int | Returns: the size of the arraycapacity n)Returns the smallest (closest to zero) positive number |
| public static final BiPredicate | |
| public static boolean | |
| public static int | Returns: the amount of bytes read and written to the byte arrayA list of byte buffer bufs, byte[] A byte array to write into data, int Where to start writing in the byte array offset)Reads as much bytes as possible from the buffer list, and
write them in the provided |
| public static long | |
| public static int | |
| public static String | |
| public static long | |
| public static long | |
| public static long | |
| public static int | |
| public static long | |
| public static int | |
| public static InetSocketAddress | |
| public static ExecutorService | |
| public static void | setUserAuthFlags(HttpRequestImpl request, HttpHeaders userHeaders)
Check the user headers to see if the Authorization or ProxyAuthorization were set. |
| public static final void | |
| public static ByteBuffer | Returns: a new ByteBuffer for the given slicethe original buffer src, int where to start copying/slicing from src start, int how many byte to slice/copy len)Creates a slice of a buffer, possibly copying the data instead of slicing. |
| public static ByteBuffer | Returns: a new ByteBuffer for the given slicethe original buffer src, int where to start copying/slicing from src start, int how many byte to slice/copy len, int a threshold to decide whether to slice or copy threshold)Creates a slice of a buffer, possibly copying the data instead of slicing. |
| public static ByteBuffer | sliceWithLimitedCapacity(ByteBuffer buffer, int amount)
Returns a slice of size |
| public static String | |
| public static String | |
| public static long | |
| public static Throwable | |
| public static IOException | |
| public static boolean | |
| public static boolean | |
| public static UncheckedIOException | |
| public static Utils. | |
| public static <T> CompletableFuture | |
| public static Throwable | Returns: a possibly new exception that has as its detail message, the message from the messageSupplier, and the given throwable as its cause. Otherwise returns the given throwableAdds a more specific exception detail message, based on the given exception type and the message supplier. |