public void MergeWithTraditionalProperty(TraditionalHttpRequestMessageProperty propertyToMerge) { if (propertyToMerge.HasMethodBeenSet) { this.Method = propertyToMerge.Method; } if (propertyToMerge.QueryString != TraditionalHttpRequestMessageProperty.DefaultQueryString) { this.QueryString = propertyToMerge.QueryString; } this.SuppressEntityBody = propertyToMerge.SuppressEntityBody; this.HttpRequestMessage.MergeWebHeaderCollection(propertyToMerge.Headers); }
public void MergeWithTraditionalProperty(TraditionalHttpRequestMessageProperty propertyToMerge) { if (propertyToMerge.HasMethodBeenSet) { this.Method = propertyToMerge.Method; } if (propertyToMerge.QueryString != TraditionalHttpRequestMessageProperty.DefaultQueryString) { this.QueryString = propertyToMerge.QueryString; } this.SuppressEntityBody = propertyToMerge.SuppressEntityBody; WebHeaderCollection headersToMerge = propertyToMerge.Headers; foreach (string headerKey in headersToMerge.AllKeys) { this.Headers[headerKey] = headersToMerge[headerKey]; } }
internal HttpRequestMessageProperty(WebHeaderCollection originalHeaders) { _traditionalProperty = new TraditionalHttpRequestMessageProperty(originalHeaders); _useHttpBackedProperty = false; }
public HttpRequestMessageProperty() { _traditionalProperty = new TraditionalHttpRequestMessageProperty(); _useHttpBackedProperty = false; }
internal HttpRequestMessageProperty(IHttpHeaderProvider httpHeaderProvider) { this.traditionalProperty = new TraditionalHttpRequestMessageProperty(httpHeaderProvider); this.useHttpBackedProperty = false; }