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)); }
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)); }