C# Class Owin.Response

Inheritance: IResponse
Afficher le fichier Open project: remitaylor/knack Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

AddHeader() public méthode

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
Résultat Response

AddHeaders() public méthode

public AddHeaders ( string>.IDictionary headers ) : void
headers string>.IDictionary
Résultat void

AddHeaders() public méthode

public AddHeaders ( IDictionary headers ) : void
headers IDictionary
Résultat void

AddToBody() public méthode

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

Clear() public méthode

public Clear ( ) : void
Résultat void

GetBody() public méthode

public GetBody ( ) : IEnumerable
Résultat IEnumerable

GetHeader() public méthode

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

Redirect() public méthode

public Redirect ( int statusCode, string location ) : Response
statusCode int
location string
Résultat Response

Redirect() public méthode

public Redirect ( string location ) : Response
location string
Résultat Response

Response() public méthode

public Response ( ) : System
Résultat System

Response() public méthode

public Response ( IResponse response ) : System
response IResponse
Résultat System

Response() public méthode

public Response ( int statusCode, string>.IDictionary headers ) : System
statusCode int
headers string>.IDictionary
Résultat System

Response() public méthode

public Response ( int statusCode, IDictionary headers ) : System
statusCode int
headers IDictionary
Résultat System

Response() public méthode

public Response ( int statusCode, string bodyText, string>.IDictionary headers ) : System
statusCode int
bodyText string
headers string>.IDictionary
Résultat System

Response() public méthode

public Response ( int statusCode, string bodyText, IDictionary headers ) : System
statusCode int
bodyText string
headers IDictionary
Résultat System

Response() public méthode

public Response ( string bodyText ) : System
bodyText string
Résultat System

Response() public méthode

public Response ( string bodyText, string>.IDictionary headers ) : System
bodyText string
headers string>.IDictionary
Résultat System

Response() public méthode

public Response ( string bodyText, IDictionary headers ) : System
bodyText string
headers IDictionary
Résultat System

Response() public méthode

public Response ( string bodyText, int statusCode ) : System
bodyText string
statusCode int
Résultat System

Response() public méthode

public Response ( string bodyText, string status ) : System
bodyText string
status string
Résultat System

SetBody() public méthode

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

SetHeader() public méthode

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

SetHeader() public méthode

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

SetStatus() public méthode

public SetStatus ( int statusCode ) : Response
statusCode int
Résultat Response

SetStatus() public méthode

public SetStatus ( string status ) : Response
status string
Résultat Response

SetValidDefaults() public méthode

public SetValidDefaults ( ) : void
Résultat void

Write() public méthode

public Write ( string writeToBody ) : Response
writeToBody string
Résultat Response