C# Class Nancy.Serialization.ProtoBuf.ProtoBufResponse

Represents a ProtoBuffer response.
Inheritance: Response
Afficher le fichier Open project: NancyFx/Nancy.Serialization.ProtBuf

Méthodes publiques

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

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

WithStatusCode() public méthode

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