Table of Contents

Interface IHttpResponse

Namespace
ComponentSpace.Saml2.Bindings
Assembly
ComponentSpace.Saml2.dll

Represents an HTTP response for use with the SAML bindings.

public interface IHttpResponse

Properties

Body

Gets the HTTP body.

The body is automatically URL encoded.

Stream Body { get; }

Property Value

Stream

The HTTP body.

ContentType

Gets or sets the content type.

string ContentType { get; set; }

Property Value

string

The content type.

Methods

AddCookie(string, string, CookieOptions)

Adds a cookie.

void AddCookie(string cookieName, string cookieValue, CookieOptions cookieOptions)

Parameters

cookieName string

The cookie name.

cookieValue string

The cookie value.

cookieOptions CookieOptions

The optional cookie options.

AddHeader(string, StringValues)

Adds a header.

void AddHeader(string headerName, StringValues headerValues)

Parameters

headerName string

The header name.

headerValues StringValues

The header values.

Redirect(string)

Redirects to the specified URL.

void Redirect(string url)

Parameters

url string

The URL.