Class CustomHttpResponse
- Namespace
- ComponentSpace.Saml2.Bindings
- Assembly
- ComponentSpace.Saml2.dll
Represents a custom HTTP response for use with the SAML bindings.
public class CustomHttpResponse : IHttpResponse
- Inheritance
-
CustomHttpResponse
- Implements
- Inherited Members
Properties
Body
Gets the HTTP body.
The body is automatically URL encoded.
public virtual Stream Body { get; set; }
Property Value
- Stream
The HTTP body.
ContentType
Gets or sets the content type.
public virtual string ContentType { get; set; }
Property Value
- string
The content type.
Methods
AddCookie(string, string, CookieOptions)
Adds a cookie.
public virtual void AddCookie(string cookieName, string cookieValue, CookieOptions cookieOptions)
Parameters
cookieNamestringThe cookie name.
cookieValuestringThe cookie value.
cookieOptionsCookieOptionsThe optional cookie options.
AddHeader(string, StringValues)
Adds a header.
public virtual void AddHeader(string headerName, StringValues headerValues)
Parameters
headerNamestringThe header name.
headerValuesStringValuesThe header values.
Redirect(string)
Redirects to the specified URL.
public virtual void Redirect(string url)
Parameters
urlstringThe URL.