Esempio n. 1
0
 public HttpResponse(
     ISerializer deserializer,
     Stream body,
     IHttpResponseState state)
 {
     Deserializer = deserializer;
     Body         = body;
     State        = state;
 }
Esempio n. 2
0
        public HttpResponse(
            ISerializer deserializer,
            Stream body,
            IHttpResponseState state,
            HttpContentHeaders headers)
        {
            this.deserializer = deserializer;
            this.body         = new SingleUseStream(body);

            State   = state;
            Headers = headers;
        }