示例#1
0
        public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration)
        {
            _encoder     = encoderDecoderConfiguration.GetEncoder();
            _decoder     = encoderDecoderConfiguration.GetDecoder();
            _uriComposer = new UriComposer();

            Request = new HttpRequest(_encoder);
        }
示例#2
0
 public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration)
 {
     _encoder = encoderDecoderConfiguration.GetEncoder();
     _decoder = encoderDecoderConfiguration.GetDecoder();
     _uriComposer = new UriComposer();
     
     Request = new HttpRequest(_encoder);
 }
示例#3
0
        public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration)
        {
            _encoder = encoderDecoderConfiguration.GetEncoder();
            _decoder = encoderDecoderConfiguration.GetDecoder();
            _decoder.ShouldRemoveAtSign = _shouldRemoveAtSign;
            _uriComposer = new UriComposer();

            Request = new HttpRequest(_encoder);

            RegisteredInterceptions = new List <HttpRequestInterception>();
        }
        /// <summary>
        /// Client for sending Http request and Http responses.
        /// </summary>
        /// <param name="encoderDecoderConfiguration">Configuration for getting encoder and decoder.</param>
        /// <param name="composer">Composer for generating URI.</param>
        public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration, IUriComposer composer)
        {
            this.encoder = encoderDecoderConfiguration.GetEncoder();
            this.decoder = encoderDecoderConfiguration.GetDecoder();
            this.uriComposer = composer;

            this.Request = new HttpRequest(this.encoder);
        }