C# Class Owin.Response

Inheritance: IResponse
Datei anzeigen Open project: remitaylor/knack Class Usage Examples

Public Methods

Method Description
AddHeader ( string key, IEnumerable value ) : Response

Set header, adding to any other values this header may have

AddHeader ( string key, string value ) : Response

Set header with a string, adding to any other values this header may have

AddHeaders ( string>.IDictionary headers ) : void
AddHeaders ( IDictionary headers ) : void
AddToBody ( ) : Response

Set the body to one or many objects, adding to any other values the body may have

Clear ( ) : void
GetBody ( ) : IEnumerable
GetHeader ( string key ) : string

Returns the first value of the given header or null if the header does not exist

Redirect ( int statusCode, string location ) : Response
Redirect ( string location ) : Response
Response ( ) : System
Response ( IResponse response ) : System
Response ( int statusCode, string>.IDictionary headers ) : System
Response ( int statusCode, IDictionary headers ) : System
Response ( int statusCode, string bodyText, string>.IDictionary headers ) : System
Response ( int statusCode, string bodyText, IDictionary headers ) : System
Response ( string bodyText ) : System
Response ( string bodyText, string>.IDictionary headers ) : System
Response ( string bodyText, IDictionary headers ) : System
Response ( string bodyText, int statusCode ) : System
Response ( string bodyText, string status ) : System
SetBody ( ) : Response

Set the body to one or many objects, overriding any other values the body may have

SetHeader ( string key, IEnumerable value ) : Response

Set header, overriding any other values this header may have

SetHeader ( string key, string value ) : Response

Set header with a string, overriding any other values this header may have

SetStatus ( int statusCode ) : Response
SetStatus ( string status ) : Response
SetValidDefaults ( ) : void
Write ( string writeToBody ) : Response

Method Details

AddHeader() public method

Set header, adding to any other values this header may have
public AddHeader ( string key, IEnumerable value ) : Response
key string
value IEnumerable
return Response

AddHeader() public method

Set header with a string, adding to any other values this header may have
public AddHeader ( string key, string value ) : Response
key string
value string
return Response

AddHeaders() public method

public AddHeaders ( string>.IDictionary headers ) : void
headers string>.IDictionary
return void

AddHeaders() public method

public AddHeaders ( IDictionary headers ) : void
headers IDictionary
return void

AddToBody() public method

Set the body to one or many objects, adding to any other values the body may have
public AddToBody ( ) : Response
return Response

Clear() public method

public Clear ( ) : void
return void

GetBody() public method

public GetBody ( ) : IEnumerable
return IEnumerable

GetHeader() public method

Returns the first value of the given header or null if the header does not exist
public GetHeader ( string key ) : string
key string
return string

Redirect() public method

public Redirect ( int statusCode, string location ) : Response
statusCode int
location string
return Response

Redirect() public method

public Redirect ( string location ) : Response
location string
return Response

Response() public method

public Response ( ) : System
return System

Response() public method

public Response ( IResponse response ) : System
response IResponse
return System

Response() public method

public Response ( int statusCode, string>.IDictionary headers ) : System
statusCode int
headers string>.IDictionary
return System

Response() public method

public Response ( int statusCode, IDictionary headers ) : System
statusCode int
headers IDictionary
return System

Response() public method

public Response ( int statusCode, string bodyText, string>.IDictionary headers ) : System
statusCode int
bodyText string
headers string>.IDictionary
return System

Response() public method

public Response ( int statusCode, string bodyText, IDictionary headers ) : System
statusCode int
bodyText string
headers IDictionary
return System

Response() public method

public Response ( string bodyText ) : System
bodyText string
return System

Response() public method

public Response ( string bodyText, string>.IDictionary headers ) : System
bodyText string
headers string>.IDictionary
return System

Response() public method

public Response ( string bodyText, IDictionary headers ) : System
bodyText string
headers IDictionary
return System

Response() public method

public Response ( string bodyText, int statusCode ) : System
bodyText string
statusCode int
return System

Response() public method

public Response ( string bodyText, string status ) : System
bodyText string
status string
return System

SetBody() public method

Set the body to one or many objects, overriding any other values the body may have
public SetBody ( ) : Response
return Response

SetHeader() public method

Set header, overriding any other values this header may have
public SetHeader ( string key, IEnumerable value ) : Response
key string
value IEnumerable
return Response

SetHeader() public method

Set header with a string, overriding any other values this header may have
public SetHeader ( string key, string value ) : Response
key string
value string
return Response

SetStatus() public method

public SetStatus ( int statusCode ) : Response
statusCode int
return Response

SetStatus() public method

public SetStatus ( string status ) : Response
status string
return Response

SetValidDefaults() public method

public SetValidDefaults ( ) : void
return void

Write() public method

public Write ( string writeToBody ) : Response
writeToBody string
return Response