public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration) { _encoder = encoderDecoderConfiguration.GetEncoder(); _decoder = encoderDecoderConfiguration.GetDecoder(); _uriComposer = new UriComposer(); Request = new HttpRequest(_encoder); }
public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration) { _encoder = encoderDecoderConfiguration.GetEncoder(); _decoder = encoderDecoderConfiguration.GetDecoder(); _decoder.ShouldRemoveAtSign = _shouldRemoveAtSign; _uriComposer = new UriComposer(); Request = new HttpRequest(_encoder); RegisteredInterceptions = new List <HttpRequestInterception>(); }
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); }
public HttpClient(IEncoderDecoderConfiguration encoderDecoderConfiguration) { _encoder = encoderDecoderConfiguration.GetEncoder(); _decoder = encoderDecoderConfiguration.GetDecoder(); Request = new HttpRequest(_encoder); }