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
cookieNamestringThe cookie name.
cookieValuestringThe cookie value.
cookieOptionsCookieOptionsThe optional cookie options.
AddHeader(string, StringValues)
Adds a header.
void AddHeader(string headerName, StringValues headerValues)
Parameters
headerNamestringThe header name.
headerValuesStringValuesThe header values.
Redirect(string)
Redirects to the specified URL.
void Redirect(string url)
Parameters
urlstringThe URL.