コード例 #1
0
 public TcpResponseMessage(ITcpClient client, HttpRequestMessage request, Uri requestUri, TcpClientMessageHandler handler)
 {
     _requestUri    = requestUri;
     _handler       = handler;
     _client        = client;
     RequestMessage = request;
 }
コード例 #2
0
 private static void SetCookies(IEnumerable <string> values, TcpResponseMessage response,
                                TcpClientMessageHandler handler)
 {
     if (!response._handler.UseCookies)
     {
         return;
     }
     foreach (var value in values)
     {
         response._handler.CookieContainer.SetCookies(response._requestUri, value);
     }
 }