public RequestBehaviorBuilder RespondContent(HttpStatusCode httpStatusCode, Func <HttpRequestMessage, HttpContent> contentFn, Uri location = null) { statusCode = httpStatusCode; Response = new HttpContentResponseCreator(contentFn); Location = location; return(this); }
public RequestBehaviorBuilder RespondContent(HttpStatusCode httpStatusCode, HttpContent content, Uri location = null) { statusCode = httpStatusCode; Response = new HttpContentResponseCreator(request => content); Location = location; return(this); }