Show / Hide Table of Contents

Class AspNetHttpRequest

Represents an ASP.NET HTTP request for use with the SAML bindings.

Inheritance
System.Object
AspNetHttpRequest
Implements
IHttpRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.Saml2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public class AspNetHttpRequest : IHttpRequest

Constructors

AspNetHttpRequest(IHttpContextAccessor)

Initializes a new instance of the AspNetHttpRequest class.

Declaration
public AspNetHttpRequest(IHttpContextAccessor httpContextAccessor)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor

The HTTP context accessor.

Properties

Body

Gets the HTTP body.

Declaration
public virtual Stream Body { get; }
Property Value
Type Description
System.IO.Stream

The HTTP body.

ContentLength

Gets the HTTP content length.

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

The HTTP content length.

ContentType

Gets the HTTP content type.

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

The HTTP content type.

Cookies

Gets the collection of cookies.

Declaration
public virtual 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
public virtual 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
public virtual 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
public virtual 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
public virtual bool IsHttps { get; }
Property Value
Type Description
System.Boolean

true if HTTPS; otherwise false.

Method

Gets the HTTP method.

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

The HTTP method.

Path

Gets the HTTP path.

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

The HTTP path.

PathBase

Gets the HTTP path base.

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

The HTTP path base.

Port

Gets the port number.

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

The port number or null if none.

Protocol

Gets the HTTP protocol.

Declaration
public virtual 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
public virtual 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
public virtual string QueryString { get; }
Property Value
Type Description
System.String

The HTTP query string.

Implements

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