C# 클래스 HttpMock.ResponseBuilder

파일 보기 프로젝트 열기: hibri/HttpMock 1 사용 예제들

공개 메소드들

메소드 설명
AddHeader ( string header, string headerValue ) : void
BuildBody ( string>.IDictionary headers ) : IDataProducer
BuildHeaders ( ) : Kayak.Http.HttpResponseHead
Return ( Func body ) : ResponseBuilder
Return ( string body ) : ResponseBuilder
WithContentType ( string contentType ) : void
WithFile ( string pathToFile ) : void
WithFileRange ( string pathToFile, int from, int to ) : void
WithStatus ( HttpStatusCode httpStatusCode ) : void

메소드 상세

AddHeader() 공개 메소드

public AddHeader ( string header, string headerValue ) : void
header string
headerValue string
리턴 void

BuildBody() 공개 메소드

public BuildBody ( string>.IDictionary headers ) : IDataProducer
headers string>.IDictionary
리턴 IDataProducer

BuildHeaders() 공개 메소드

public BuildHeaders ( ) : Kayak.Http.HttpResponseHead
리턴 Kayak.Http.HttpResponseHead

Return() 공개 메소드

public Return ( Func body ) : ResponseBuilder
body Func
리턴 ResponseBuilder

Return() 공개 메소드

public Return ( string body ) : ResponseBuilder
body string
리턴 ResponseBuilder

WithContentType() 공개 메소드

public WithContentType ( string contentType ) : void
contentType string
리턴 void

WithFile() 공개 메소드

public WithFile ( string pathToFile ) : void
pathToFile string
리턴 void

WithFileRange() 공개 메소드

public WithFileRange ( string pathToFile, int from, int to ) : void
pathToFile string
from int
to int
리턴 void

WithStatus() 공개 메소드

public WithStatus ( HttpStatusCode httpStatusCode ) : void
httpStatusCode HttpStatusCode
리턴 void