public ProgressiveResponse(string requestId, string authToken, string baseAddress, HttpClient client) { Client = client; if (!string.IsNullOrWhiteSpace(baseAddress)) { Client.BaseAddress = new Uri(baseAddress, UriKind.Absolute); } if (!string.IsNullOrWhiteSpace(authToken)) { Client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", authToken); } if (!string.IsNullOrWhiteSpace(requestId)) { Header = new ProgressiveResponseHeader(requestId); } }
public ProgressiveResponse(ProgressiveResponseHeader header, HttpClient client) { Client = client; Header = header; }
public ProgressiveResponseRequest(ProgressiveResponseHeader header, IProgressiveResponseDirective directive) { Header = header; Directive = directive; }