Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Response(T content, RawResponse rawResponse)
 {
     Content = content;
     URL     = rawResponse.URL;
     Method  = rawResponse.Method;
 }