public TcpResponseMessage(ITcpClient client, HttpRequestMessage request, Uri requestUri, TcpClientMessageHandler handler) { _requestUri = requestUri; _handler = handler; _client = client; RequestMessage = request; }
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); } }