Show / Hide Table of Contents

Class CustomHttpRequest

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

Inheritance
object
CustomHttpRequest
Implements
IHttpRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
Stream

The HTTP body.

ContentLength

Gets the HTTP content length.

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

The HTTP content length.

ContentType

Gets the HTTP content type.

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

The HTTP content type.

Cookies

Gets the collection of cookies.

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

The form variables.

Headers

Gets the dictionary of HTTP headers.

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

The HTTP headers.

Host

Gets the host name.

Declaration
public virtual string Host { get; set; }
Property Value
Type Description
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
bool

true if HTTPS; otherwise false.

Method

Gets the HTTP method.

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

The HTTP method.

Path

Gets the HTTP path.

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

The HTTP path.

PathBase

Gets the HTTP path base.

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

The HTTP path base.

Port

Gets the port number.

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

The port number or null if none.

Protocol

Gets the HTTP protocol.

Declaration
public virtual string Protocol { get; set; }
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
public virtual IDictionary<string, StringValues> Query { get; set; }
Property Value
Type Description
IDictionary<string, 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
string

The HTTP query string.

Implements

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