Open sandboxFocus

Method TryGetHeader

TryGetHeader(object, string, out IEnumerable<string>)

Gets a request header.

Declaration
bool TryGetHeader(object request, string name, out IEnumerable<string> values)
Parameters
Type Name Description
object request
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.