public Response(IDictionary <string, string> headers) { Ensure.ArgumentIsNotNull(headers, "headers"); Headers = new ReadOnlyDictionary <string, string>(headers); ApiInfo = ApiInfoParser.ParseResponseHeaders(headers); }
public Response(HttpStatusCode statusCode, object body, IDictionary <string, string> headers, string contentType) { Ensure.ArgumentIsNotNull(headers, "headers"); StatusCode = statusCode; Body = body; Headers = new ReadOnlyDictionary <string, string>(headers); ApiInfo = ApiInfoParser.ParseResponseHeaders(headers); ContentType = contentType; }