HTTP-RELAY(1)

πŸ“¦
version 2.1.3 Β· 4 versions
, in debian trixie, ubuntu questing

πŸ’– 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-timeout will 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