Class CustomHttpResponse
Represents a custom HTTP response for use with the SAML bindings.
Inheritance
System.Object
CustomHttpResponse
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.IO.Stream | The HTTP body. |
ContentType
Gets or sets the content type.
Declaration
public virtual string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|---|
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
public virtual 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
public virtual void Redirect(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |