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 |
---|---|
System.IO.Stream | The HTTP body. |
ContentType
Gets or sets the content type.
Declaration
string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|---|
System.String | cookieName | The cookie name. |
System.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 |
---|---|---|
System.String | headerName | The header name. |
Microsoft.Extensions.Primitives.StringValues | headerValues | The header values. |
Redirect(String)
Redirects to the specified URL.
Declaration
void Redirect(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |