public EncodedContent(HttpContent content, Func <Stream, Stream> encoder) { if (content.IsNotNull()) { this.content = content; this.encoder = encoder; content.Headers.ToList().ForEach(x => this.Headers.TryAddWithoutValidation(x.Key, x.Value)); } }