public async static Task <RawResponse> FromHttpResponse(HttpResponseMessage msg) { var rr = new RawResponse { Content = await msg.Content.ReadAsStringAsync(), URL = msg.RequestMessage.RequestUri.ToString(), Method = msg.RequestMessage.Method.ToString() }; return(rr); }
public Response(T content, RawResponse rawResponse) { Content = content; URL = rawResponse.URL; Method = rawResponse.Method; }