C# Class Nancy.Serialization.ProtoBuf.ProtoBufResponse

Represents a ProtoBuffer response.
Inheritance: Response
Show file Open project: NancyFx/Nancy.Serialization.ProtBuf

Public Methods

Method Description
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.

Method Details

ProtoBufResponse() public method

Initializes a new instance ofthe ProtoBufResponse class.
public ProtoBufResponse ( object body ) : global::ProtoBuf
body object Model instance to be serialized as the body.
return global::ProtoBuf

WithStatusCode() public method

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
return ProtoBufResponse