C# Класс Owin.Response

Наследование: IResponse
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddHeader() публичный Метод

Set header, adding to any other values this header may have
public AddHeader ( string key, IEnumerable value ) : Response
key string
value IEnumerable
Результат Response

AddHeader() публичный Метод

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
Результат Response

AddHeaders() публичный Метод

public AddHeaders ( string>.IDictionary headers ) : void
headers string>.IDictionary
Результат void

AddHeaders() публичный Метод

public AddHeaders ( IDictionary headers ) : void
headers IDictionary
Результат void

AddToBody() публичный Метод

Set the body to one or many objects, adding to any other values the body may have
public AddToBody ( ) : Response
Результат Response

Clear() публичный Метод

public Clear ( ) : void
Результат void

GetBody() публичный Метод

public GetBody ( ) : IEnumerable
Результат IEnumerable

GetHeader() публичный Метод

Returns the first value of the given header or null if the header does not exist
public GetHeader ( string key ) : string
key string
Результат string

Redirect() публичный Метод

public Redirect ( int statusCode, string location ) : Response
statusCode int
location string
Результат Response

Redirect() публичный Метод

public Redirect ( string location ) : Response
location string
Результат Response

Response() публичный Метод

public Response ( ) : System
Результат System

Response() публичный Метод

public Response ( IResponse response ) : System
response IResponse
Результат System

Response() публичный Метод

public Response ( int statusCode, string>.IDictionary headers ) : System
statusCode int
headers string>.IDictionary
Результат System

Response() публичный Метод

public Response ( int statusCode, IDictionary headers ) : System
statusCode int
headers IDictionary
Результат System

Response() публичный Метод

public Response ( int statusCode, string bodyText, string>.IDictionary headers ) : System
statusCode int
bodyText string
headers string>.IDictionary
Результат System

Response() публичный Метод

public Response ( int statusCode, string bodyText, IDictionary headers ) : System
statusCode int
bodyText string
headers IDictionary
Результат System

Response() публичный Метод

public Response ( string bodyText ) : System
bodyText string
Результат System

Response() публичный Метод

public Response ( string bodyText, string>.IDictionary headers ) : System
bodyText string
headers string>.IDictionary
Результат System

Response() публичный Метод

public Response ( string bodyText, IDictionary headers ) : System
bodyText string
headers IDictionary
Результат System

Response() публичный Метод

public Response ( string bodyText, int statusCode ) : System
bodyText string
statusCode int
Результат System

Response() публичный Метод

public Response ( string bodyText, string status ) : System
bodyText string
status string
Результат System

SetBody() публичный Метод

Set the body to one or many objects, overriding any other values the body may have
public SetBody ( ) : Response
Результат Response

SetHeader() публичный Метод

Set header, overriding any other values this header may have
public SetHeader ( string key, IEnumerable value ) : Response
key string
value IEnumerable
Результат Response

SetHeader() публичный Метод

Set header with a string, overriding any other values this header may have
public SetHeader ( string key, string value ) : Response
key string
value string
Результат Response

SetStatus() публичный Метод

public SetStatus ( int statusCode ) : Response
statusCode int
Результат Response

SetStatus() публичный Метод

public SetStatus ( string status ) : Response
status string
Результат Response

SetValidDefaults() публичный Метод

public SetValidDefaults ( ) : void
Результат void

Write() публичный Метод

public Write ( string writeToBody ) : Response
writeToBody string
Результат Response