Uses of Record Class
io.github.mahmoudimus.http2.HeaderField
Packages that use HeaderField
-
Uses of HeaderField in io.github.mahmoudimus.http2
Methods in io.github.mahmoudimus.http2 that return HeaderFieldModifier and TypeMethodDescriptionHpackDecoder.dynamicTableEntry(int index) A dynamic table entry, 1 being the newest (HPACK index 62).HpackEncoder.dynamicTableEntry(int index) A dynamic table entry, 1 being the newest.Methods in io.github.mahmoudimus.http2 that return types with arguments of type HeaderFieldModifier and TypeMethodDescriptionHpackDecoder.decode(int streamId, byte[] block) Decodes a complete HPACK field block.HpackDecoder.decode(int streamId, byte[] block, int offset, int length) Decodes one complete field block.RequestHeaders.fields()Returns the value of thefieldsrecord component.ResponseHeaders.fields()Returns the value of thefieldsrecord component.static List<HeaderField> Http2Headers.fromHttp1Request(String method, String scheme, String authority, String path, Collection<? extends Map.Entry<String, String>> headers) An HTTP/2 request header list for an HTTP/1-style request: pseudo-headers first, then the fields with lower-cased names, minus connection-specific fields (and any named inconnection),host(carried by:authority) and ateother thantrailers;cookieis split into crumbs (§8.2.3), which compress better.static List<HeaderField> Http2Headers.fromHttp1Response(int status, Collection<? extends Map.Entry<String, String>> headers) An HTTP/2 response header list for an HTTP/1-style response; seeHttp2Headers.fromHttp1Request(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Collection<? extends java.util.Map.Entry<java.lang.String, java.lang.String>>).static List<HeaderField> Http2Headers.validateTrailers(int streamId, List<HeaderField> fields) Validates a trailer section: regular fields only.Method parameters in io.github.mahmoudimus.http2 with type arguments of type HeaderFieldModifier and TypeMethodDescriptionbyte[]HpackEncoder.encode(List<HeaderField> fields) Encodes one field section into a field block.voidHpackEncoder.encode(List<HeaderField> fields, ByteArrayOutputStream out) Encodes one field section, appending the field block toout.static RequestHeadersHttp2Headers.toRequest(int streamId, List<HeaderField> fields) Validates a decoded request header section.static ResponseHeadersHttp2Headers.toResponse(int streamId, List<HeaderField> fields) Validates a decoded response header section (final or 1xx).static List<HeaderField> Http2Headers.validateTrailers(int streamId, List<HeaderField> fields) Validates a trailer section: regular fields only.Constructor parameters in io.github.mahmoudimus.http2 with type arguments of type HeaderFieldModifierConstructorDescriptionRequestHeaders(String method, String scheme, String authority, String path, List<HeaderField> fields, long contentLength) Creates request headers without extended CONNECT metadata.RequestHeaders(String method, String scheme, String authority, String path, List<HeaderField> fields, long contentLength, String protocol) Creates request headers and takes an immutable copy of the regular fields.ResponseHeaders(int status, List<HeaderField> fields, long contentLength) Creates response headers and takes an immutable copy of the regular fields.