コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public ProgressiveResponse(ProgressiveResponseHeader header, HttpClient client)
 {
     Client = client;
     Header = header;
 }
コード例 #3
0
 public ProgressiveResponseRequest(ProgressiveResponseHeader header, IProgressiveResponseDirective directive)
 {
     Header    = header;
     Directive = directive;
 }