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
System.IO.Stream

The HTTP body.

ContentLength

Gets the HTTP content length.

Declaration
long? ContentLength { get; }
Property Value
Type Description
System.Nullable<System.Int64>

The HTTP content length.

ContentType

Gets the HTTP content type.

Declaration
string ContentType { get; }
Property Value
Type Description
System.String

The HTTP content type.

Cookies

Gets the collection of cookies.

Declaration
IDictionary<string, string> Cookies { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.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
System.Collections.Generic.IDictionary<System.String, Microsoft.Extensions.Primitives.StringValues>

The form variables.

Headers

Gets the dictionary of HTTP headers.

Declaration
IDictionary<string, StringValues> Headers { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, Microsoft.Extensions.Primitives.StringValues>

The HTTP headers.

Host

Gets the host name.

Declaration
string Host { get; }
Property Value
Type Description
System.String

The host name.

IsHttps

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

Declaration
bool IsHttps { get; }
Property Value
Type Description
System.Boolean

true if HTTPS; otherwise false.

Method

Gets the HTTP method.

Declaration
string Method { get; }
Property Value
Type Description
System.String

The HTTP method.

Path

Gets the HTTP path.

Declaration
string Path { get; }
Property Value
Type Description
System.String

The HTTP path.

PathBase

Gets the HTTP path base.

Declaration
string PathBase { get; }
Property Value
Type Description
System.String

The HTTP path base.

Port

Gets the port number.

Declaration
int? Port { get; }
Property Value
Type Description
System.Nullable<System.Int32>

The port number or null if none.

Protocol

Gets the HTTP protocol.

Declaration
string Protocol { get; }
Property Value
Type Description
System.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
System.Collections.Generic.IDictionary<System.String, Microsoft.Extensions.Primitives.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
System.String

The HTTP query string.

In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.