Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.http
Interface Header

All Superinterfaces:
  NameValuePair

All Known Subinterfaces:
  FormattedHeader

All Known Implementing Classes:
  BasicHeader, BufferedHeader

    public interface Header

extends NameValuePair

Represents an HTTP header field.

The HTTP header fields follow the same generic format as that given in Section 3.1 of RFC 822. Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. The field value MAY be preceded by any amount of LWS, though a single SP is preferred.

         message-header = field-name ":" [ field-value ]
         field-name     = token
         field-value    = *( field-content | LWS )
         field-content  = <the OCTETs making up the field-value
                          and consisting of either *TEXT or combinations
                          of token, separators, and quoted-string>

Since:
  4.0

Method Summary
`HeaderElement[]` | `getElements()` Parses the value.

Methods inherited from interface org.apache.http.NameValuePair
`getName, getValue`

Method Detail

### getElements

    HeaderElement[] getElements()
                                throws ParseException

  Parses the value.

  Returns:
    an array of `HeaderElement` entries, may be empty, but is never `null`
  Throws:
    `ParseException` - in case of a parsing error

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.