HTTP-RELAY(1)
π HTTP-RELAY(1) π
User Commands Β· the girlies' guide to being a reverse HTTP proxy
πΈ NAME πΈ
http-relay β bestie, this relays HTTP requests from your local host to a remote host. That's the whole vibe. π¦
β¨ DESCRIPTION β¨
Okay so here's the usage, and yes it's a whole mouthful, we love her for it:
usage: http-relay [-h] [-n NUM_THREADS] [-b BUFFER_SIZE] [-t SIGKILL_TIMEOUT]
[-s] host [port] [local_port] [local_addr]
What it does? It relays HTTP requests from localhost to a remote host β so basically it's acting as a reverse HTTP proxy. Main character energy, honestly. π
π positional arguments π
hostβ the remote host you wanna connect to (like"cvut.cz", iconic example, slay).portβ the remote host's port you're connecting to (e.g.80).local_portβ the local port the relay should use. If you leave it out, it just copies the remote port, no thoughts, head empty, same port. π«Άlocal_addrβ the local interface (IP or hostname) to run the relay on. By default it runs on all IPv4 interfaces (0.0.0.0). She's everywhere fr fr.
π₯ options π₯
-h,--helpβ shows this help message and dips. Bye! π-n NUM_THREADS,--num-threads NUM_THREADSβ the number of threads servicing the incoming requests. More threads = more girlies working the counter.-b BUFFER_SIZE,--buffer-size BUFFER_SIZEβ the size of the buffer used for reading responses. Generally, a bigger buffer should be more efficient... but π¨ if it's too large, your local clients may time out before they receive any data. So like, don't overdo it bestie.-t SIGKILL_TIMEOUT,--sigkill-timeout SIGKILL_TIMEOUTβ if you specify this, the relay gets sigkilled in this number of seconds. Yes, sigkilled. She goes out dramatically. π-s,--sigkill-on-stream-stopβ if True,--sigkill-timeoutwill not be counted when no requests are active, and during requests, every successful data transmission resets the timeout. This is the move for detecting stale streams β use it if you expect an application to be constantly receiving data. π
No cap: -t genuinely sigkills the relay. That's not a metaphor, that's a signal. Respect it. π
And that's the page, bestie β http-relay version 2.1.3, dated June 2024, brought to you by the User Commands girlies. Now go proxy something. πβ¨π
π¦ where this page comes from
- debian trixie: python3-http-relay 2.1.3-2 Β· BSD-3-Clause
- ubuntu questing: python3-http-relay 2.1.3-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms