AbstractMessageParser.ParseHeaders Method

Definition

Parses HTTP headers from a session input buffer.

[Android.Runtime.Register("parseHeaders", "(Lorg/apache/http/io/SessionInputBuffer;IILorg/apache/http/message/LineParser;)[Lorg/apache/http/Header;", "")]
public static Org.Apache.Http.IHeader[]? ParseHeaders(Org.Apache.Http.IO.ISessionInputBuffer? inbuffer, int maxHeaderCount, int maxLineLen, Org.Apache.Http.Message.ILineParser? parser);
[<Android.Runtime.Register("parseHeaders", "(Lorg/apache/http/io/SessionInputBuffer;IILorg/apache/http/message/LineParser;)[Lorg/apache/http/Header;", "")>]
static member ParseHeaders : Org.Apache.Http.IO.ISessionInputBuffer * int * int * Org.Apache.Http.Message.ILineParser -> Org.Apache.Http.IHeader[]

Parameters

inbuffer
ISessionInputBuffer

The session input buffer.

maxHeaderCount
Int32

The header-count limit; zero or a negative value disables it. The method throws when the count reaches this value, so a limit of N permits at most N - 1 headers.

maxLineLen
Int32

The maximum length of a combined folded header line. This limit is applied only while joining folded continuation lines; a nonpositive value disables it.

parser
ILineParser

The line parser to use.

Returns

The parsed HTTP headers.

Attributes

Remarks

Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.

Applies to