Class CustomHttpResponse
Represents a custom HTTP response for use with the SAML bindings.
Implements
Inherited Members
Namespace: ComponentSpace.Saml2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public class CustomHttpResponse : IHttpResponse
  Properties
Body
Gets the HTTP body.
The body is automatically URL encoded.
Declaration
public virtual Stream Body { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Stream | The HTTP body.  | 
      
ContentType
Gets or sets the content type.
Declaration
public virtual string ContentType { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | The content type.  | 
      
Methods
AddCookie(string, string, CookieOptions)
Adds a cookie.
Declaration
public virtual 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
public virtual 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
public virtual void Redirect(string url)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | url | The URL.  |