| Package | Description | 
|---|---|
| org.apache.hc.core5.http | Core HTTP transport component APIs. | 
| 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.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.support | |
| org.apache.hc.core5.net | Core network component APIs and utilities. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | FormattedHeaderAn HTTP header which is already formatted. | 
| interface  | HeaderRepresents an HTTP header field consisting of a field name and a field
 value. | 
| Modifier and Type | Method and Description | 
|---|---|
| NameValuePair | HeaderElement. getParameter(int index)Returns parameter with the given index. | 
| NameValuePair | HeaderElement. getParameterByName(String name)Returns the first parameter with the given name. | 
| NameValuePair[] | HeaderElement. getParameters()Returns an array of name / value pairs. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ContentType | ContentType. create(String mimeType,
      NameValuePair... params)Creates a new instance of  ContentTypewith the given parameters. | 
| ContentType | ContentType. withParameters(NameValuePair... params)Creates a new instance with this MIME type and the given parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| static List<NameValuePair> | EntityUtils. parse(HttpEntity entity)Returns a list of  NameValuePairsas parsed from anHttpEntity. | 
| static List<NameValuePair> | EntityUtils. parse(HttpEntity entity,
     int maxStreamLength)Returns a list of  NameValuePairsas parsed from anHttpEntity. | 
| Modifier and Type | Method and Description | 
|---|---|
| static HttpEntity | HttpEntities. createUrlEncoded(Iterable<? extends NameValuePair> parameters,
                Charset charset) | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassicRequestBuilder | ClassicRequestBuilder. addParameter(NameValuePair nvp) | 
| ClassicRequestBuilder | ClassicRequestBuilder. addParameters(NameValuePair... nvps) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicHeaderImmutable  Header. | 
| class  | BasicNameValuePairBasic implementation of  NameValuePair. | 
| class  | BufferedHeaderThis class represents a raw HTTP header whose content is parsed 'on demand'
 only when the header value needs to be consumed. | 
| Modifier and Type | Method and Description | 
|---|---|
| NameValuePair | BasicHeaderElement. getParameter(int index) | 
| NameValuePair | BasicHeaderElement. getParameterByName(String name) | 
| NameValuePair[] | BasicHeaderElement. getParameters() | 
| NameValuePair | HeaderValueParser. parseNameValuePair(CharSequence buffer,
                  ParserCursor cursor)Parses a name=value specification, where the = and value are optional. | 
| NameValuePair | BasicHeaderValueParser. parseNameValuePair(CharSequence buffer,
                  ParserCursor cursor) | 
| NameValuePair[] | HeaderValueParser. parseParameters(CharSequence buffer,
               ParserCursor cursor)Parses a list of name-value pairs. | 
| NameValuePair[] | BasicHeaderValueParser. parseParameters(CharSequence buffer,
               ParserCursor cursor) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | HeaderValueFormatter. formatNameValuePair(CharArrayBuffer buffer,
                   NameValuePair nvp,
                   boolean quote)Formats one name-value pair, where the value is optional. | 
| void | BasicHeaderValueFormatter. formatNameValuePair(CharArrayBuffer buffer,
                   NameValuePair nvp,
                   boolean quote) | 
| static void | MessageSupport. formatParameters(CharArrayBuffer dst,
                NameValuePair... params) | 
| void | HeaderValueFormatter. formatParameters(CharArrayBuffer buffer,
                NameValuePair[] nvps,
                boolean quote)Formats the parameters of a header element. | 
| void | BasicHeaderValueFormatter. formatParameters(CharArrayBuffer buffer,
                NameValuePair[] nvps,
                boolean quote) | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | MessageSupport. formatParameters(CharArrayBuffer dst,
                List<NameValuePair> params) | 
| static void | MessageSupport. parseParameters(CharSequence src,
               ParserCursor cursor,
               Consumer<NameValuePair> consumer) | 
| Constructor and Description | 
|---|
| BasicHeaderElement(String name,
                  String value,
                  NameValuePair... parameters)Constructor with name, value and parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| static AsyncEntityProducer | AsyncEntityProducers. createUrlEncoded(Iterable<? extends NameValuePair> parameters,
                Charset charset) | 
| Modifier and Type | Method and Description | 
|---|---|
| AsyncRequestBuilder | AsyncRequestBuilder. addParameter(NameValuePair nvp) | 
| AsyncRequestBuilder | AsyncRequestBuilder. addParameters(NameValuePair... nvps) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<NameValuePair> | AbstractRequestBuilder. getParameters() | 
| Modifier and Type | Method and Description | 
|---|---|
| AbstractRequestBuilder<T> | AbstractRequestBuilder. addParameter(NameValuePair nvp) | 
| BasicRequestBuilder | BasicRequestBuilder. addParameter(NameValuePair nvp) | 
| AbstractRequestBuilder<T> | AbstractRequestBuilder. addParameters(NameValuePair... nvps) | 
| BasicRequestBuilder | BasicRequestBuilder. addParameters(NameValuePair... nvps) | 
| Modifier and Type | Method and Description | 
|---|---|
| NameValuePair | URIBuilder. getFirstQueryParam(String name)Gets the first  NameValuePairfor a given name. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<NameValuePair> | URIBuilder. getQueryParams()Gets the query parameters as a List. | 
| static List<NameValuePair> | WWWFormCodec. parse(CharSequence s,
     Charset charset)Returns a list of  NameValuePairparameters parsed
 from theapplication/x-www-form-urlencodedcontent. | 
| static List<NameValuePair> | URLEncodedUtils. parse(CharSequence s,
     Charset charset)Deprecated.  Returns a list of  NameValuePairs URI query parameters. | 
| static List<NameValuePair> | URLEncodedUtils. parse(CharSequence s,
     Charset charset,
     char... separators)Deprecated.  Returns a list of  NameValuePairs parameters. | 
| static List<NameValuePair> | URLEncodedUtils. parse(URI uri,
     Charset charset)Deprecated.  Returns a list of  NameValuePairs URI query parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| URIBuilder | URIBuilder. addParameter(NameValuePair nameValuePair)Adds parameter to URI query. | 
| URIBuilder | URIBuilder. setParameters(NameValuePair... nameValuePairs)Sets URI query parameters. | 
| URIBuilder | URIBuilder. setSchemeSpecificPart(String schemeSpecificPart,
                     NameValuePair... nvps)Sets the URI scheme specific part and append a variable arguments list of NameValuePair instance(s) to this part. | 
| Modifier and Type | Method and Description | 
|---|---|
| URIBuilder | URIBuilder. addParameters(List<NameValuePair> nameValuePairs)Adds URI query parameters. | 
| static String | URLEncodedUtils. format(Iterable<? extends NameValuePair> parameters,
      char parameterSeparator,
      Charset charset)Deprecated.  Returns a String that is suitable for use as an  application/x-www-form-urlencodedlist of parameters in an HTTP PUT or HTTP POST. | 
| static String | WWWFormCodec. format(Iterable<? extends NameValuePair> params,
      Charset charset)Formats the list of  NameValuePairparameters into aapplication/x-www-form-urlencodedcontent string. | 
| static String | URLEncodedUtils. format(Iterable<? extends NameValuePair> parameters,
      Charset charset)Deprecated.  Returns a String that is suitable for use as an  application/x-www-form-urlencodedlist of parameters in an HTTP PUT or HTTP POST. | 
| static void | WWWFormCodec. format(StringBuilder buf,
      Iterable<? extends NameValuePair> params,
      Charset charset)Formats the list of  NameValuePairparameters into aapplication/x-www-form-urlencodedcontent. | 
| URIBuilder | URIBuilder. setParameters(List<NameValuePair> nameValuePairs)Sets URI query parameters. | 
| URIBuilder | URIBuilder. setSchemeSpecificPart(String schemeSpecificPart,
                     List<NameValuePair> nvps)Sets the URI scheme specific part and append a list of NameValuePair to this part. | 
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.