Skip to content

Instantly share code, notes, and snippets.

@pmuellr
Last active June 27, 2022 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuellr/5b055ff7e33e17209df3322cddd53a5a to your computer and use it in GitHub Desktop.
Save pmuellr/5b055ff7e33e17209df3322cddd53a5a to your computer and use it in GitHub Desktop.
sequenceDiagram
    participant Client
    participant Proxy
    participant Target
    Client->>Proxy: HTTP CONNECT target.example.com:80 
    Proxy->>Target: open socket to target.example.com:80
    Proxy->>Client: empty 200 OK status response ...
    Proxy->>Client: ..but leave socket open from client
    Note over Proxy: Proxy now just passes bytes btween client and target
    Client->>Target: HTTP/s request
    Target->>Client: HTTP/s response
@pmuellr
Copy link
Author

pmuellr commented Jun 27, 2022

use https://mermaid.live/ to get an image of this, pasting in the source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment