Show / Hide Table of Contents

Interface IHttpRequest

Represents an HTTP request for use with the SAML bindings.

Namespace: ComponentSpace.Saml2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IHttpRequest

Properties

Body

Gets the HTTP body.

Declaration
Stream Body { get; }
Property Value
Type Description
Stream

The HTTP body.

ContentLength

Gets the HTTP content length.

Declaration
long? ContentLength { get; }
Property Value
Type Description
long?

The HTTP content length.

ContentType

Gets the HTTP content type.

Declaration
string ContentType { get; }
Property Value
Type Description
string

The HTTP content type.

Cookies

Gets the collection of cookies.

Declaration
IDictionary<string, string> Cookies { get; }
Property Value
Type Description
IDictionary<string, string>

The cookies.

Form

Gets the collection of form variables.

Form variables should already be URL decoded.

Declaration
IDictionary<string, StringValues> Form { get; }
Property Value
Type Description
IDictionary<string, StringValues>

The form variables.

Headers

Gets the dictionary of HTTP headers.

Declaration
IDictionary<string, StringValues> Headers { get; }
Property Value
Type Description
IDictionary<string, StringValues>

The HTTP headers.

Host

Gets the host name.

Declaration
string Host { get; }
Property Value
Type Description
string

The host name.

IsHttps

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

Declaration
bool IsHttps { get; }
Property Value
Type Description
bool

true if HTTPS; otherwise false.

Method

Gets the HTTP method.

Declaration
string Method { get; }
Property Value
Type Description
string

The HTTP method.

Path

Gets the HTTP path.

Declaration
string Path { get; }
Property Value
Type Description
string

The HTTP path.

PathBase

Gets the HTTP path base.

Declaration
string PathBase { get; }
Property Value
Type Description
string

The HTTP path base.

Port

Gets the port number.

Declaration
int? Port { get; }
Property Value
Type Description
int?

The port number or null if none.

Protocol

Gets the HTTP protocol.

Declaration
string Protocol { get; }
Property Value
Type Description
string

The HTTP protocol.

Query

Gets the collection of query string values.

Query string values should already be URL decoded.

Declaration
IDictionary<string, StringValues> Query { get; }
Property Value
Type Description
IDictionary<string, StringValues>

The query string values.

QueryString

Gets the HTTP query string.

The query string is URL encoded.

Declaration
string QueryString { get; }
Property Value
Type Description
string

The HTTP query string.

In this article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2025. All rights reserved.