Interface IHttpResponse
Represents an HTTP response for use with the SAML bindings.
Namespace: ComponentSpace.Saml2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IHttpResponse
Properties
Body
Gets the HTTP body.
The body is automatically URL encoded.
Declaration
Stream Body { get; }
Property Value
| Type | Description |
|---|---|
| Stream | The HTTP body. |
ContentType
Gets or sets the content type.
Declaration
string ContentType { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The content type. |
Methods
AddCookie(string, string, CookieOptions)
Adds a cookie.
Declaration
void AddCookie(string cookieName, string cookieValue, CookieOptions cookieOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| string | cookieName | The cookie name. |
| string | cookieValue | The cookie value. |
| CookieOptions | cookieOptions | The optional cookie options. |
AddHeader(string, StringValues)
Adds a header.
Declaration
void AddHeader(string headerName, StringValues headerValues)
Parameters
| Type | Name | Description |
|---|---|---|
| string | headerName | The header name. |
| StringValues | headerValues | The header values. |
Redirect(string)
Redirects to the specified URL.
Declaration
void Redirect(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | The URL. |