Show / Hide Table of Contents

Class CustomHttpRequest

Represents a custom HTTP request for use with the SAML bindings.

Inheritance
System.Object
CustomHttpRequest
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 CustomHttpRequest : IHttpRequest

Properties

Body

Gets the HTTP body.

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

The HTTP body.

ContentLength

Gets the HTTP content length.

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

The HTTP content length.

ContentType

Gets the HTTP content type.

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

The HTTP content type.

Cookies

Gets the collection of cookies.

Declaration
public virtual IDictionary<string, string> Cookies { get; set; }
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; set; }
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; set; }
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; set; }
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; set; }
Property Value
Type Description
System.Boolean

true if HTTPS; otherwise false.

Method

Gets the HTTP method.

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

The HTTP method.

Path

Gets the HTTP path.

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

The HTTP path.

PathBase

Gets the HTTP path base.

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

The HTTP path base.

Port

Gets the port number.

Declaration
public virtual int? Port { get; set; }
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; set; }
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; set; }
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; set; }
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.