public class LazyLaxLineParser extends BasicLineParser
BasicLineParser that defers parsing of
header values. Header value is parsed only if accessed with
NameValuePair.getValue().
This parser unlike BasicLineParser and LazyLineParser
will not reject headers containing whitespaces between the header field
name and colon.
This parser should be used to parse response messages on the client server or to parse both request and response messages by an intermediary (proxy).
| 限定符和类型 | 字段和说明 |
|---|---|
static LazyLaxLineParser |
INSTANCE |
| 构造器和说明 |
|---|
LazyLaxLineParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
Header |
parseHeader(CharArrayBuffer buffer)
Parses a header from the given buffer containing one line of text.
|
parseRequestLine, parseStatusLinepublic static final LazyLaxLineParser INSTANCE
public Header parseHeader(CharArrayBuffer buffer) throws ParseException
LineParserparseHeader 在接口中 LineParserparseHeader 在类中 BasicLineParserbuffer - a buffer holding the full header line.ParseException - in case of a parse errorCopyright © 2023. All rights reserved.