コード例 #1
0
 public async Task <HttpRequestData> HandleRequestAsync(HttpStatusCode statusCode, IList <HttpHeaderData> headers, byte[] bytes)
 {
     ResponseStatusCode   = statusCode;
     ResponseHeaders      = headers;
     ResponseContentBytes = bytes;
     return(await HttpRequestData.FromHttpRequestMessageAsync(_request).ConfigureAwait(false));
 }
コード例 #2
0
 public async override Task <HttpRequestData> HandleRequestAsync(HttpStatusCode statusCode = HttpStatusCode.OK, IList <HttpHeaderData> headers = null, string content = "")
 {
     ResponseStatusCode    = statusCode;
     ResponseHeaders       = headers;
     ResponseContentString = content;
     return(await HttpRequestData.FromHttpRequestMessageAsync(_request).ConfigureAwait(false));
 }