Esempio n. 1
0
        public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration)
        {
            _encoder     = encoderDecoderConfiguration.GetEncoder();
            _decoder     = encoderDecoderConfiguration.GetDecoder();
            _uriComposer = new UriComposer();

            Request = new HttpRequest(_encoder);
        }
Esempio n. 2
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>();
        }
Esempio n. 3
0
        public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration)
        {
            _encoder = encoderDecoderConfiguration.GetEncoder();
            _decoder = encoderDecoderConfiguration.GetDecoder();
            _decoder.ShouldRemoveAtSign = ShouldRemoveAtSign;
            _uriComposer = new UriComposer();

            Request = new HttpRequest(_encoder);
        }
        /// <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);
        }
Esempio n. 5
0
        public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration)
        {
            _encoder = encoderDecoderConfiguration.GetEncoder();
            _decoder = encoderDecoderConfiguration.GetDecoder();

            Request = new HttpRequest(_encoder);
        }