cloudflared-mirror/connection
Sudarsan Reddy 7059ef8e13 TUN-5195: Do not set empty body if not applicable
Go's client defaults to chunked encoding after a 200ms delay if the following cases are true:
  * the request body blocks
  * the content length is not set (or set to -1)
  * the method doesn't usually have a body (GET, HEAD, DELETE, ...)
  * there is no transfer-encoding=chunked already set.
So for non websocket requests, if transfer-encoding isn't chunked and content length is 0, we dont set a request body.
2021-10-07 15:47:27 +01:00
..
connection.go TUN-5128: Enforce maximum grace period 2021-09-21 16:48:37 +00:00
connection_test.go TUN-4701: Split Proxy into ProxyHTTP and ProxyTCP 2021-07-19 13:43:59 +00:00
control.go TUN-5142: defer close rpcconn inside unregister instead of ServeControlStream 2021-09-24 12:56:31 +01:00
errors.go TUN-3811: Better error reporting on http2 connection termination. Registration errors from control loop are now propagated out of the connection server code. Unified error handling between h2mux and http2 connections so we log and retry errors the same way, regardless of underlying transport. 2021-01-28 10:38:30 -06:00
event.go TUN-4821: Make quick tunnels the default in cloudflared 2021-08-26 15:53:02 +00:00
h2mux.go TUN-4701: Split Proxy into ProxyHTTP and ProxyTCP 2021-07-19 13:43:59 +00:00
h2mux_test.go TUN-3863: Consolidate header handling logic in the connection package; move headers definitions from h2mux to packages that manage them; cleanup header conversions 2021-03-29 21:57:56 +00:00
header.go TUN-5029: Do not strip cf- prefixed headers 2021-09-02 12:21:01 -05:00
header_test.go TUN-5029: Do not strip cf- prefixed headers 2021-09-02 12:21:01 -05:00
http2.go TUN-5142: Add asynchronous servecontrolstream for QUIC 2021-09-24 10:00:43 +00:00
http2_test.go TUN-4866: Add Control Stream for QUIC 2021-08-17 14:50:32 +00:00
json.go TUN-3467: Serialize cf-cloudflared-response-meta during package initialization using jsoniter 2020-11-11 15:11:42 +00:00
metrics.go TUN-4067: Reformat code for consistent import order, grouping, and fix formatting. Added goimports target to the Makefile to make this easier in the future. 2021-03-24 10:53:29 -05:00
observer.go TUN-4821: Make quick tunnels the default in cloudflared 2021-08-26 15:53:02 +00:00
observer_test.go TUN-4821: Make quick tunnels the default in cloudflared 2021-08-26 15:53:02 +00:00
protocol.go TUN-4970: Only default to http2 for warp-routing if protocol is h2mux 2021-08-26 15:12:31 +00:00
protocol_test.go TUN-4819: Tolerate protocol TXT record lookup failing 2021-07-29 11:44:39 +00:00
quic.go TUN-5195: Do not set empty body if not applicable 2021-10-07 15:47:27 +01:00
quic_test.go TUN-5195: Do not set empty body if not applicable 2021-10-07 15:47:27 +01:00
rpc.go TUN-4821: Make quick tunnels the default in cloudflared 2021-08-26 15:53:02 +00:00
tunnelsforha.go TUN-3471: Add structured log context to logs 2021-01-05 20:21:16 +00:00