Show / Hide Table of Contents

Class HeaderRetriever

Parameter retriever that retrieves a header by name

Inheritance
Object
ParameterRetriever
HeaderRetriever
Namespace: Seltzr.ParameterRetrievers
Assembly: Seltzr.dll
Syntax
C#
public class HeaderRetriever : ParameterRetriever

Constructors

| Improve this Doc View Source

HeaderRetriever(String, String)

Initializes a new instance of the HeaderRetriever class.

C#
public HeaderRetriever(string name, string defaultValue = null)
Parameters
nameString

The name of the header to retrieve

defaultValueString

The default value of the header if none is specified

Methods

| Improve this Doc View Source

GetValue(HttpRequest)

Gets the value of the header for the given request

C#
public override string GetValue(HttpRequest request)
Parameters
requestHttpRequest

The HTTP request context

Returns

String

The retrieved header value

Overrides
ParameterRetriever.GetValue(HttpRequest)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX