public HttpConnection(IHttpHeaderSerializer httpHeaderSerializer, IHttpEncoding httpEncoding, ISocket socket) { if (null == httpHeaderSerializer) throw new ArgumentNullException(nameof(httpHeaderSerializer)); if (null == socket) throw new ArgumentNullException(nameof(socket)); _httpHeaderSerializer = httpHeaderSerializer; _headerDecoding = httpEncoding.HeaderDecoding; _socket = socket; }
public HttpConnection(IHttpHeaderSerializer httpHeaderSerializer, IHttpEncoding httpEncoding, ISocket socket) { if (null == httpHeaderSerializer) { throw new ArgumentNullException("httpHeaderSerializer"); } if (null == socket) { throw new ArgumentNullException("socket"); } this._httpHeaderSerializer = httpHeaderSerializer; this._headerDecoding = httpEncoding.HeaderDecoding; this._socket = socket; }