Exemplo n.º 1
0
        /// <summary>
        /// Creates a HTTP payload.
        /// </summary>
        public HttpPayload(ObjectPool<byte[]> bufferPool)
        {
            _multiValueHeaderView = new MultiValueHeaderView(this);
            _singleValueHeaderView = new SingleValueHeaderView(this);

            IsChunked = false;
            Body = new ChunkedBuffer(bufferPool);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a HTTP payload.
        /// </summary>
        public HttpPayload(ObjectPool <byte[]> bufferPool)
        {
            _multiValueHeaderView  = new MultiValueHeaderView(this);
            _singleValueHeaderView = new SingleValueHeaderView(this);

            IsChunked = false;
            Body      = new ChunkedBuffer(bufferPool);
        }