Uses of Interface
org.apache.hc.core5.http.Header
-
Packages that use Header Package Description org.apache.hc.core5.http Core HTTP transport component APIs.org.apache.hc.core5.http.digest HTTP Digest Fields as defined by RFC 9530.org.apache.hc.core5.http.impl.io Default implementation of HTTP/1.1 transport based on the classic (blocking) I/O model.org.apache.hc.core5.http.impl.io.support org.apache.hc.core5.http.impl.nio Default implementation of HTTP/1.1 transport based on the asynchronous (non-blocking) I/O model.org.apache.hc.core5.http.io.entity HTTP message entity APIs based on the classic (blocking) I/O model.org.apache.hc.core5.http.io.support Support classes for the classic (blocking) I/O model.org.apache.hc.core5.http.message Core HTTP message components, message element parser and writer APIs and their default implementations.org.apache.hc.core5.http.nio Core HTTP transport APIs based on the asynchronous, event driven I/O model.org.apache.hc.core5.http.nio.entity HTTP message entity APIs based on the asynchronous (non-blocking) I/O model.org.apache.hc.core5.http.nio.support Support classes for the asynchronous I/O model.org.apache.hc.core5.http.nio.support.classic Support classes for the asynchronous I/O model that emulate behavior of the classic (blocking) I/O model.org.apache.hc.core5.http.structured Immutable data model, strict parser, canonical serializer, and message-header integration for Structured Field Structured Field Values for HTTP.org.apache.hc.core5.http.support -
-
Uses of Header in org.apache.hc.core5.http
Subinterfaces of Header in org.apache.hc.core5.http Modifier and Type Interface Description interfaceFormattedHeaderAn HTTP header which is already formatted.Methods in org.apache.hc.core5.http that return Header Modifier and Type Method Description HeaderMessageHeaders. getFirstHeader(java.lang.String name)Returns the first header with a specified name of this message.HeaderMessageHeaders. getHeader(java.lang.String name)Gets single first header with the given name.Header[]MessageHeaders. getHeaders()Returns all the headers of this message.Header[]MessageHeaders. getHeaders(java.lang.String name)Returns all the headers with a specified name of this message.HeaderMessageHeaders. getLastHeader(java.lang.String name)Returns the last header with a specified name of this message.Methods in org.apache.hc.core5.http that return types with arguments of type Header Modifier and Type Method Description Supplier<java.util.List<? extends Header>>HttpEntity. getTrailers()Gets supplier of message trailers - headers sent after message body.java.util.Iterator<Header>MessageHeaders. headerIterator()Returns an iterator of all the headers.java.util.Iterator<Header>MessageHeaders. headerIterator(java.lang.String name)Returns an iterator of the headers with a given name.Methods in org.apache.hc.core5.http with parameters of type Header Modifier and Type Method Description voidHttpMessage. addHeader(Header header)Adds a header to this message.booleanHttpMessage. removeHeader(Header header)Removes a header from this message.voidHttpMessage. setHeader(Header header)Overwrites the first header with the same name.voidHttpMessage. setHeaders(Header... headers)Overwrites all the headers in the message. -
Uses of Header in org.apache.hc.core5.http.digest
Methods in org.apache.hc.core5.http.digest that return Header Modifier and Type Method Description static HeaderDigestFields. formatDigest(java.lang.String name, StructuredFieldDictionary value)Formats a validatedContent-DigestorRepr-Digestdictionary.static HeaderDigestFields. formatPreferences(java.lang.String name, StructuredFieldDictionary value)Formats a validatedWant-Content-DigestorWant-Repr-Digestdictionary.Methods in org.apache.hc.core5.http.digest with parameters of type Header Modifier and Type Method Description static StructuredFieldDictionaryDigestFields. parseDigest(Header header)Parses and validates aContent-DigestorRepr-Digestfield value.static StructuredFieldDictionaryDigestFields. parsePreferences(Header header)Parses and validates aWant-Content-DigestorWant-Repr-Digestfield value. -
Uses of Header in org.apache.hc.core5.http.impl.io
Methods in org.apache.hc.core5.http.impl.io that return Header Modifier and Type Method Description Header[]ChunkedInputStream. getFooters()static Header[]AbstractMessageParser. parseHeaders(SessionInputBuffer inBuffer, java.io.InputStream inputStream, int maxHeaderCount, int maxLineLen, LineParser lineParser)Parses HTTP headers from the data receiver stream according to the generic format as specified by the HTTP/1.1 protocol specification.static Header[]AbstractMessageParser. parseHeaders(SessionInputBuffer inBuffer, java.io.InputStream inputStream, int maxHeaderCount, int maxLineLen, LineParser parser, java.util.List<CharArrayBuffer> headerLines)Parses HTTP headers from the data receiver stream according to the generic format as specified by the HTTP/1.1 protocol specification.Constructor parameters in org.apache.hc.core5.http.impl.io with type arguments of type Header Constructor Description ChunkedOutputStream(SessionOutputBuffer buffer, java.io.OutputStream outputStream, byte[] chunkCache, Supplier<java.util.List<? extends Header>> trailerSupplier)Default constructor.ChunkedOutputStream(SessionOutputBuffer buffer, java.io.OutputStream outputStream, int chunkSizeHint, Supplier<java.util.List<? extends Header>> trailerSupplier)Constructor taking an integer chunk size hint. -
Uses of Header in org.apache.hc.core5.http.impl.io.support
Methods in org.apache.hc.core5.http.impl.io.support that return types with arguments of type Header Modifier and Type Method Description Supplier<java.util.List<? extends Header>>IncomingHttpEntity. getTrailers() -
Uses of Header in org.apache.hc.core5.http.impl.nio
Methods in org.apache.hc.core5.http.impl.nio that return types with arguments of type Header Modifier and Type Method Description java.util.List<? extends Header>AbstractContentDecoder. getTrailers()java.util.List<? extends Header>ChunkDecoder. getTrailers()Method parameters in org.apache.hc.core5.http.impl.nio with type arguments of type Header Modifier and Type Method Description voidAbstractContentEncoder. complete(java.util.List<? extends Header> trailers)voidChunkEncoder. complete(java.util.List<? extends Header> trailers)voidAsyncClientExchangeHandlerDelegate. streamEnd(java.util.List<? extends Header> trailers) -
Uses of Header in org.apache.hc.core5.http.io.entity
Methods in org.apache.hc.core5.http.io.entity that return types with arguments of type Header Modifier and Type Method Description Supplier<java.util.List<? extends Header>>AbstractHttpEntity. getTrailers()Gets supplier of message trailers - headers sent after message body.Supplier<java.util.List<? extends Header>>HttpEntityWrapper. getTrailers()Supplier<java.util.List<? extends Header>>NullEntity. getTrailers()Methods in org.apache.hc.core5.http.io.entity with parameters of type Header Modifier and Type Method Description static HttpEntityHttpEntities. create(byte[] content, ContentType contentType, Header... trailers)static HttpEntityHttpEntities. create(java.io.File content, ContentType contentType, Header... trailers)static HttpEntityHttpEntities. create(java.io.Serializable serializable, ContentType contentType, Header... trailers)static HttpEntityHttpEntities. create(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)static HttpEntityHttpEntities. create(java.lang.String content, ContentType contentType, Header... trailers)static HttpEntityHttpEntities. create(java.lang.String content, Header... trailers)static HttpEntityHttpEntities. create(java.nio.file.Path content, ContentType contentType, Header... trailers)static HttpEntityHttpEntities. create(IOCallback<java.io.OutputStream> callback, ContentType contentType, Header... trailers)static HttpEntityHttpEntities. withTrailers(HttpEntity entity, Header... trailers) -
Uses of Header in org.apache.hc.core5.http.io.support
Methods in org.apache.hc.core5.http.io.support with parameters of type Header Modifier and Type Method Description ClassicRequestBuilderClassicRequestBuilder. addHeader(Header header)ClassicResponseBuilderClassicResponseBuilder. addHeader(Header header)ClassicRequestBuilderClassicRequestBuilder. removeHeader(Header header)ClassicResponseBuilderClassicResponseBuilder. removeHeader(Header header)ClassicRequestBuilderClassicRequestBuilder. setHeader(Header header)ClassicResponseBuilderClassicResponseBuilder. setHeader(Header header)ClassicRequestBuilderClassicRequestBuilder. setHeaders(Header... headers)ClassicResponseBuilderClassicResponseBuilder. setHeaders(Header... headers) -
Uses of Header in org.apache.hc.core5.http.message
Classes in org.apache.hc.core5.http.message that implement Header Modifier and Type Class Description classBasicHeaderImmutableHeader.classBufferedHeaderThis class represents a raw HTTP header whose content is parsed 'on demand' only when the header value needs to be consumed.Methods in org.apache.hc.core5.http.message that return Header Modifier and Type Method Description static HeaderMessageSupport. format(java.lang.String name, java.lang.String... tokens)Deprecated.static HeaderMessageSupport. format(java.lang.String name, java.util.Set<java.lang.String> tokens)Deprecated.HeaderHeaderGroup. getCondensedHeader(java.lang.String name)Gets a header representing all of the header values with the given name.HeaderAbstractMessageWrapper. getFirstHeader(java.lang.String name)HeaderHeaderGroup. getFirstHeader(java.lang.String name)Gets the first header with the given name.HeaderAbstractMessageWrapper. getHeader(java.lang.String name)HeaderHeaderGroup. getHeader(java.lang.String name)Gets single first header with the given name.Header[]AbstractMessageWrapper. getHeaders()Header[]AbstractMessageWrapper. getHeaders(java.lang.String name)Header[]HeaderGroup. getHeaders()Gets all of the headers contained within this group.Header[]HeaderGroup. getHeaders(java.lang.String name)Gets all of the headers with the given name.HeaderAbstractMessageWrapper. getLastHeader(java.lang.String name)HeaderHeaderGroup. getLastHeader(java.lang.String name)Gets the last header with the given name.static HeaderMessageSupport. header(java.lang.String name, java.lang.String... tokens)static HeaderMessageSupport. header(java.lang.String name, java.util.Set<java.lang.String> tokens)static HeaderMessageSupport. header(java.lang.String name, HeaderElement... elements)static HeaderMessageSupport. headerOfElements(java.lang.String name, java.util.List<HeaderElement> elements)static HeaderMessageSupport. headerOfTokens(java.lang.String name, java.util.List<java.lang.String> tokens)static HeaderMessageSupport. headerOfTokens(java.lang.String name, java.util.List<java.lang.String> tokens, java.util.function.UnaryOperator<java.lang.String> transformation)HeaderBasicHeaderIterator. next()Obtains the next header from this iteration.HeaderBasicLineParser. parseHeader(CharArrayBuffer buffer)HeaderLazyLaxLineParser. parseHeader(CharArrayBuffer buffer)HeaderLazyLineParser. parseHeader(CharArrayBuffer buffer)HeaderLineParser. parseHeader(CharArrayBuffer buffer)Parses a header from the given buffer containing one line of text.Methods in org.apache.hc.core5.http.message that return types with arguments of type Header Modifier and Type Method Description java.util.Iterator<Header>AbstractMessageWrapper. headerIterator()java.util.Iterator<Header>AbstractMessageWrapper. headerIterator(java.lang.String name)java.util.Iterator<Header>HeaderGroup. headerIterator()Returns an iterator over this group of headers.java.util.Iterator<Header>HeaderGroup. headerIterator(java.lang.String name)Returns an iterator over the headers with a given name in this group.Methods in org.apache.hc.core5.http.message with parameters of type Header Modifier and Type Method Description voidAbstractMessageWrapper. addHeader(Header header)voidHeaderGroup. addHeader(Header header)Adds the given header to the group.voidBasicLineFormatter. formatHeader(CharArrayBuffer buffer, Header header)voidLineFormatter. formatHeader(CharArrayBuffer buffer, Header header)Formats a header.static HeaderElement[]MessageSupport. parse(Header header)Deprecated.static java.util.List<HeaderElement>MessageSupport. parseElements(Header header)static voidMessageSupport. parseElements(Header header, java.util.function.Consumer<HeaderElement> consumer)static voidMessageSupport. parseHeader(Header header, java.util.function.BiConsumer<java.lang.CharSequence,ParserCursor> consumer)static voidMessageSupport. parseHeaderStrict(Header header, ElementConsumer consumer)static <T> TMessageSupport. parseHeaderValue(Header header, java.util.function.BiFunction<java.lang.CharSequence,ParserCursor,T> transformation)static <T> TMessageSupport. parseHeaderValueStrict(Header header, ElementTransformation<T> transformation)static java.util.Set<java.lang.String>MessageSupport. parseTokens(Header header)static voidMessageSupport. parseTokens(Header header, java.util.function.Consumer<java.lang.String> consumer)static voidMessageSupport. parseTokens(Header header, Tokenizer.Delimiter delimiterPredicate, java.util.function.Consumer<java.lang.String> consumer)booleanAbstractMessageWrapper. removeHeader(Header header)booleanHeaderGroup. removeHeader(Header header)Removes the first given header.booleanHeaderGroup. removeHeaders(Header header)Removes all headers that match the given header.voidAbstractMessageWrapper. setHeader(Header header)voidHeaderGroup. setHeader(Header header)Replaces the first occurrence of the header with the same name.voidAbstractMessageWrapper. setHeaders(Header... headers)voidHeaderGroup. setHeaders(Header... headers)Sets all of the headers contained within this group overriding any existing headers.Constructors in org.apache.hc.core5.http.message with parameters of type Header Constructor Description BasicHeaderIterator(Header[] headers, java.lang.String name)Creates a new header iterator.Constructor parameters in org.apache.hc.core5.http.message with type arguments of type Header Constructor Description BasicHeaderElementIterator(java.util.Iterator<? extends Header> headerIterator)BasicHeaderElementIterator(java.util.Iterator<? extends Header> headerIterator, HeaderValueParser parser)Creates a new instance of BasicHeaderElementIteratorBasicTokenIterator(java.util.Iterator<? extends Header> headerIterator)Creates a new instance ofBasicTokenIterator. -
Uses of Header in org.apache.hc.core5.http.nio
Methods in org.apache.hc.core5.http.nio that return types with arguments of type Header Modifier and Type Method Description java.util.List<? extends Header>ContentDecoder. getTrailers()Returns content trailers if availableMethod parameters in org.apache.hc.core5.http.nio with type arguments of type Header Modifier and Type Method Description voidContentEncoder. complete(java.util.List<? extends Header> trailers)Terminates the content stream.voidDataStreamChannel. endStream(java.util.List<? extends Header> trailers)Terminates the underlying data stream and optionally writes a closing sequence with the given trailers.voidAsyncDataConsumer. streamEnd(java.util.List<? extends Header> trailers)Triggered to signal termination of the data stream. -
Uses of Header in org.apache.hc.core5.http.nio.entity
Methods in org.apache.hc.core5.http.nio.entity that return types with arguments of type Header Modifier and Type Method Description java.util.List<Header>DigestingEntityConsumer. getTrailers()List of trailers sent with the data stream.Methods in org.apache.hc.core5.http.nio.entity with parameters of type Header Modifier and Type Method Description static AsyncEntityProducerAsyncEntityProducers. create(byte[] content, ContentType contentType, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. create(java.io.File content, ContentType contentType, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. create(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. create(java.lang.String content, ContentType contentType, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. create(java.lang.String content, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. create(java.nio.file.Path content, ContentType contentType, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. withTrailers(AsyncEntityProducer entity, Header... trailers)Method parameters in org.apache.hc.core5.http.nio.entity with type arguments of type Header Modifier and Type Method Description voidAbstractBinDataConsumer. streamEnd(java.util.List<? extends Header> trailers)voidAbstractCharDataConsumer. streamEnd(java.util.List<? extends Header> trailers)voidDigestingEntityConsumer. streamEnd(java.util.List<? extends Header> trailers)voidDiscardingEntityConsumer. streamEnd(java.util.List<? extends Header> trailers)voidNoopEntityConsumer. streamEnd(java.util.List<? extends Header> trailers)Deprecated. -
Uses of Header in org.apache.hc.core5.http.nio.support
Methods in org.apache.hc.core5.http.nio.support with parameters of type Header Modifier and Type Method Description AsyncPushBuilderAsyncPushBuilder. addHeader(Header header)AsyncRequestBuilderAsyncRequestBuilder. addHeader(Header header)AsyncResponseBuilderAsyncResponseBuilder. addHeader(Header header)AsyncPushBuilderAsyncPushBuilder. removeHeader(Header header)AsyncRequestBuilderAsyncRequestBuilder. removeHeader(Header header)AsyncResponseBuilderAsyncResponseBuilder. removeHeader(Header header)AsyncPushBuilderAsyncPushBuilder. setHeader(Header header)AsyncRequestBuilderAsyncRequestBuilder. setHeader(Header header)AsyncResponseBuilderAsyncResponseBuilder. setHeader(Header header)AsyncPushBuilderAsyncPushBuilder. setHeaders(Header... headers)AsyncRequestBuilderAsyncRequestBuilder. setHeaders(Header... headers)AsyncResponseBuilderAsyncResponseBuilder. setHeaders(Header... headers)Method parameters in org.apache.hc.core5.http.nio.support with type arguments of type Header Modifier and Type Method Description voidAbstractAsyncPushHandler. streamEnd(java.util.List<? extends Header> trailers)voidAbstractAsyncRequesterConsumer. streamEnd(java.util.List<? extends Header> trailers)voidAbstractAsyncResponseConsumer. streamEnd(java.util.List<? extends Header> trailers)voidAbstractClientExchangeHandler. streamEnd(java.util.List<? extends Header> trailers)voidAbstractServerExchangeHandler. streamEnd(java.util.List<? extends Header> trailers)voidBasicAsyncServerExpectationDecorator. streamEnd(java.util.List<? extends Header> trailers)voidBasicRequestConsumer. streamEnd(java.util.List<? extends Header> trailers)voidBasicResponseConsumer. streamEnd(java.util.List<? extends Header> trailers)voidImmediateResponseExchangeHandler. streamEnd(java.util.List<? extends Header> trailers) -
Uses of Header in org.apache.hc.core5.http.nio.support.classic
Method parameters in org.apache.hc.core5.http.nio.support.classic with type arguments of type Header Modifier and Type Method Description voidAbstractClassicEntityConsumer. streamEnd(java.util.List<? extends Header> trailers)Deprecated.voidAbstractClassicServerExchangeHandler. streamEnd(java.util.List<? extends Header> trailers)Deprecated.voidClassicToAsyncResponseConsumer. streamEnd(java.util.List<? extends Header> trailers)voidClassicToAsyncServerExchangeHandler. streamEnd(java.util.List<? extends Header> trailers) -
Uses of Header in org.apache.hc.core5.http.structured
Methods in org.apache.hc.core5.http.structured that return Header Modifier and Type Method Description static HeaderStructuredFieldHeaders. format(java.lang.String name, StructuredFieldValue value)Creates a header for a Structured Field value.Methods in org.apache.hc.core5.http.structured with parameters of type Header Modifier and Type Method Description static StructuredFieldDictionaryStructuredFieldHeaders. parseDictionary(Header header)Parses one header as an Structured Field Dictionary.static StructuredFieldItemStructuredFieldHeaders. parseItem(Header header)Parses one header as an Structured Field Item.static StructuredFieldListStructuredFieldHeaders. parseList(Header header)Parses one header as an Structured Field List. -
Uses of Header in org.apache.hc.core5.http.support
Methods in org.apache.hc.core5.http.support that return Header Modifier and Type Method Description HeaderAbstractMessageBuilder. getFirstHeader(java.lang.String name)Header[]AbstractMessageBuilder. getFirstHeaders()Header[]AbstractMessageBuilder. getHeaders()Header[]AbstractMessageBuilder. getHeaders(java.lang.String name)HeaderAbstractMessageBuilder. getLastHeader(java.lang.String name)Methods in org.apache.hc.core5.http.support with parameters of type Header Modifier and Type Method Description AbstractMessageBuilder<T>AbstractMessageBuilder. addHeader(Header header)AbstractRequestBuilder<T>AbstractRequestBuilder. addHeader(Header header)AbstractResponseBuilder<T>AbstractResponseBuilder. addHeader(Header header)BasicRequestBuilderBasicRequestBuilder. addHeader(Header header)BasicResponseBuilderBasicResponseBuilder. addHeader(Header header)AbstractMessageBuilder<T>AbstractMessageBuilder. removeHeader(Header header)AbstractRequestBuilder<T>AbstractRequestBuilder. removeHeader(Header header)AbstractResponseBuilder<T>AbstractResponseBuilder. removeHeader(Header header)BasicRequestBuilderBasicRequestBuilder. removeHeader(Header header)BasicResponseBuilderBasicResponseBuilder. removeHeader(Header header)AbstractMessageBuilder<T>AbstractMessageBuilder. setHeader(Header header)AbstractRequestBuilder<T>AbstractRequestBuilder. setHeader(Header header)AbstractResponseBuilder<T>AbstractResponseBuilder. setHeader(Header header)BasicRequestBuilderBasicRequestBuilder. setHeader(Header header)BasicResponseBuilderBasicResponseBuilder. setHeader(Header header)AbstractMessageBuilder<T>AbstractMessageBuilder. setHeaders(Header... headers)AbstractRequestBuilder<T>AbstractRequestBuilder. setHeaders(Header... headers)AbstractResponseBuilder<T>AbstractResponseBuilder. setHeaders(Header... headers)BasicRequestBuilderBasicRequestBuilder. setHeaders(Header... headers)BasicResponseBuilderBasicResponseBuilder. setHeaders(Header... headers)Method parameters in org.apache.hc.core5.http.support with type arguments of type Header Modifier and Type Method Description AbstractMessageBuilder<T>AbstractMessageBuilder. setHeaders(java.util.Iterator<Header> it)
-