C# 클래스 Nancy.Serialization.ProtoBuf.ProtoBufResponse

Represents a ProtoBuffer response.
상속: Response
파일 보기 프로젝트 열기: NancyFx/Nancy.Serialization.ProtBuf

공개 메소드들

메소드 설명
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