Open sandboxFocus

Method TryGetHeader

TryGetHeader(string, out IEnumerable<string>)

Gets a request header.

Declaration
public bool TryGetHeader(string name, out IEnumerable<string> values)
Parameters
Type Name Description
string name

Header name.

IEnumerable<string> values

At output, set of values for the header.

Returns
Type Description
bool

true if there is at least one header of this name, otherwise false.