C# Класс Nancy.Serialization.ProtoBuf.ProtoBufResponse

Represents a ProtoBuffer response.
Наследование: Response
Показать файл Открыть проект

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

Метод Описание
ProtoBufResponse ( object body ) : global::ProtoBuf

Initializes a new instance ofthe ProtoBufResponse class.

WithStatusCode ( HttpStatusCode httpStatusCode ) : ProtoBufResponse

Sets the HttpStatusCode property of the current ProtoBufResponse instance to the specified value.

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

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

Initializes a new instance ofthe ProtoBufResponse class.
public ProtoBufResponse ( object body ) : global::ProtoBuf
body object Model instance to be serialized as the body.
Результат global::ProtoBuf

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

Sets the HttpStatusCode property of the current ProtoBufResponse instance to the specified value.
public WithStatusCode ( HttpStatusCode httpStatusCode ) : ProtoBufResponse
httpStatusCode HttpStatusCode The new http status code
Результат ProtoBufResponse