Table of Contents

Interface IHttpRequest

Namespace
ComponentSpace.Saml2.Bindings
Assembly
ComponentSpace.Saml2.dll

Represents an HTTP request for use with the SAML bindings.

public interface IHttpRequest

Properties

Body

Gets the HTTP body.

Stream Body { get; }

Property Value

Stream

The HTTP body.

ContentLength

Gets the HTTP content length.

long? ContentLength { get; }

Property Value

long?

The HTTP content length.

ContentType

Gets the HTTP content type.

string ContentType { get; }

Property Value

string

The HTTP content type.

Cookies

Gets the collection of cookies.

IDictionary<string, string> Cookies { get; }

Property Value

IDictionary<string, string>

The cookies.

Form

Gets the collection of form variables.

Form variables should already be URL decoded.

IDictionary<string, StringValues> Form { get; }

Property Value

IDictionary<string, StringValues>

The form variables.

Headers

Gets the dictionary of HTTP headers.

IDictionary<string, StringValues> Headers { get; }

Property Value

IDictionary<string, StringValues>

The HTTP headers.

Host

Gets the host name.

string Host { get; }

Property Value

string

The host name.

IsHttps

Gets the flag indicating whether the transport is HTTP or HTTPS.

bool IsHttps { get; }

Property Value

bool

true if HTTPS; otherwise false.

Method

Gets the HTTP method.

string Method { get; }

Property Value

string

The HTTP method.

Path

Gets the HTTP path.

string Path { get; }

Property Value

string

The HTTP path.

PathBase

Gets the HTTP path base.

string PathBase { get; }

Property Value

string

The HTTP path base.

Port

Gets the port number.

int? Port { get; }

Property Value

int?

The port number or null if none.

Protocol

Gets the HTTP protocol.

string Protocol { get; }

Property Value

string

The HTTP protocol.

Query

Gets the collection of query string values.

Query string values should already be URL decoded.

IDictionary<string, StringValues> Query { get; }

Property Value

IDictionary<string, StringValues>

The query string values.

QueryString

Gets the HTTP query string.

The query string is URL encoded.

string QueryString { get; }

Property Value

string

The HTTP query string.