public void MergeWithTraditionalProperty(TraditionalHttpResponseMessageProperty propertyToMerge) { if (propertyToMerge.HasStatusCodeBeenSet) { this.StatusCode = propertyToMerge.StatusCode; } if (propertyToMerge.StatusDescription != TraditionalHttpResponseMessageProperty.DefaultStatusDescription) { this.StatusDescription = propertyToMerge.StatusDescription; } this.SuppressEntityBody = propertyToMerge.SuppressEntityBody; this.HttpResponseMessage.MergeWebHeaderCollection(propertyToMerge.Headers); }
public void MergeWithTraditionalProperty(TraditionalHttpResponseMessageProperty propertyToMerge) { if (propertyToMerge.HasStatusCodeBeenSet) { this.StatusCode = propertyToMerge.StatusCode; } if (propertyToMerge.StatusDescription != TraditionalHttpResponseMessageProperty.DefaultStatusDescription) { this.StatusDescription = propertyToMerge.StatusDescription; } this.SuppressEntityBody = propertyToMerge.SuppressEntityBody; WebHeaderCollection headersToMerge = propertyToMerge.Headers; foreach (string headerKey in headersToMerge.AllKeys) { this.Headers[headerKey] = headersToMerge[headerKey]; } }
internal HttpResponseMessageProperty(WebHeaderCollection originalHeaders) { _traditionalProperty = new TraditionalHttpResponseMessageProperty(originalHeaders); _useHttpBackedProperty = false; }
public HttpResponseMessageProperty() { _traditionalProperty = new TraditionalHttpResponseMessageProperty(); _useHttpBackedProperty = false; }
public void MergeWithTraditionalProperty(TraditionalHttpResponseMessageProperty propertyToMerge) { if (propertyToMerge.HasStatusCodeBeenSet) { this.StatusCode = propertyToMerge.StatusCode; } if (propertyToMerge.StatusDescription != TraditionalHttpResponseMessageProperty.DefaultStatusDescription) { this.StatusDescription = propertyToMerge.StatusDescription; } this.SuppressEntityBody = propertyToMerge.SuppressEntityBody; WebHeaderCollection headersToMerge = propertyToMerge.Headers; foreach (string headerKey in headersToMerge.AllKeys) { this.Headers[headerKey] = headersToMerge[headerKey]; } }
internal HttpResponseMessageProperty(WebHeaderCollection originalHeaders) { this.traditionalProperty = new TraditionalHttpResponseMessageProperty(originalHeaders); this.useHttpBackedProperty = false; }
public void MergeWithTraditionalProperty(TraditionalHttpResponseMessageProperty propertyToMerge) { if (propertyToMerge.HasStatusCodeBeenSet) { this.StatusCode = propertyToMerge.StatusCode; } if (propertyToMerge.StatusDescription != TraditionalHttpResponseMessageProperty.DefaultStatusDescription) { this.StatusDescription = propertyToMerge.StatusDescription; } this.SuppressEntityBody = propertyToMerge.SuppressEntityBody; this.HttpResponseMessage.MergeWebHeaderCollection(propertyToMerge.Headers); }
public HttpResponseMessageProperty() { _traditionalProperty = new TraditionalHttpResponseMessageProperty(); _useHttpBackedProperty = false; }