Class AspNetHttpRequest
- Namespace
- ComponentSpace.Saml2.Bindings
- Assembly
- ComponentSpace.Saml2.dll
Represents an ASP.NET HTTP request for use with the SAML bindings.
public class AspNetHttpRequest : IHttpRequest
- Inheritance
-
AspNetHttpRequest
- Implements
- Inherited Members
Constructors
AspNetHttpRequest(IHttpContextAccessor)
Initializes a new instance of the AspNetHttpRequest class.
public AspNetHttpRequest(IHttpContextAccessor httpContextAccessor)
Parameters
httpContextAccessorIHttpContextAccessorThe HTTP context accessor.
Properties
Body
Gets the HTTP body.
public virtual Stream Body { get; }
Property Value
- Stream
The HTTP body.
ContentLength
Gets the HTTP content length.
public virtual long? ContentLength { get; }
Property Value
- long?
The HTTP content length.
ContentType
Gets the HTTP content type.
public virtual string ContentType { get; }
Property Value
- string
The HTTP content type.
Cookies
Gets the collection of cookies.
public virtual 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.
public virtual IDictionary<string, StringValues> Form { get; }
Property Value
- IDictionary<string, StringValues>
The form variables.
Headers
Gets the dictionary of HTTP headers.
public virtual IDictionary<string, StringValues> Headers { get; }
Property Value
- IDictionary<string, StringValues>
The HTTP headers.
Host
Gets the host name.
public virtual string Host { get; }
Property Value
- string
The host name.
IsHttps
Gets the flag indicating whether the transport is HTTP or HTTPS.
public virtual bool IsHttps { get; }
Property Value
- bool
trueif HTTPS; otherwisefalse.
Method
Gets the HTTP method.
public virtual string Method { get; }
Property Value
- string
The HTTP method.
Path
Gets the HTTP path.
public virtual string Path { get; }
Property Value
- string
The HTTP path.
PathBase
Gets the HTTP path base.
public virtual string PathBase { get; }
Property Value
- string
The HTTP path base.
Port
Gets the port number.
public virtual int? Port { get; }
Property Value
- int?
The port number or
nullif none.
Protocol
Gets the HTTP protocol.
public virtual 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.
public virtual 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.
public virtual string QueryString { get; }
Property Value
- string
The HTTP query string.