Ejemplo n.º 1
0
        public MonoChunkStream(WebOperation operation, Stream innerStream,
                               WebHeaderCollection headers)
            : base(operation, innerStream)
        {
            Headers = headers;

            Decoder = new MonoChunkParser(headers);
        }
Ejemplo n.º 2
0
        public ChunkedInputStream(HttpListenerContext context, Stream stream,
                                  byte [] buffer, int offset, int length)
            : base(stream, buffer, offset, length)
        {
            this.context = context;
            WebHeaderCollection coll = (WebHeaderCollection)context.Request.Headers;

            decoder = new MonoChunkParser(coll);
        }