From 64207dad49f1c803d2b004ccf8fc6432789a8cc2 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 30 Jun 2017 13:24:04 +0200 Subject: http: Add support for CONNECT proxying to HTTPS locations Proxying HTTPS traffic requires the proxy providing the CONNECT method. This implements the client side of it, although it is a bit hacky. HTTP connect is a normal HTTP CONNECT request, followed by a normal HTTP response, just that the body of the response is the TCP stream of the target host. We use a special wrapper in case there are data bytes in the header packets - in that case, the bytes are stored in a buffer and the buffer will be drained first, afterwards the connection continues directly with the TCP stream (with one more vcall). Also: Do not send full URI to https destinations when proxying, as we are directly interfacing with the destination data stream. --- .clang-format | 1 + 1 file changed, 1 insertion(+) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index 00edbfc92..3f5e0c127 100644 --- a/.clang-format +++ b/.clang-format @@ -7,3 +7,4 @@ IndentWidth: 3 ColumnLimit: 0 BreakBeforeBraces: Allman AccessModifierOffset: 0 +SortIncludes: false -- cgit v1.2.3