public IResponseBuilder Content(IResponseContent content) { _Content = content; _ContentLength = content.Length; return(this); }
public CompressedResponseContent(IResponseContent originalContent, Func <Stream, Stream> generator) { OriginalContent = originalContent; Generator = generator; }
public IResponseContent Compress(IResponseContent content) { return(new CompressedResponseContent(content, (target) => new BrotliStream(target, CompressionLevel.Fastest, false))); }
public IResponseContent Compress(IResponseContent content) { return(content); }
public void AddContent(string key, IResponseContent item) { this.content = this.content ?? new Dictionary <string, IResponseContent>(); this.content.Add(key, item); }