#http-proxy #proxy #sock

socks-http-kit

A lightweight library for SOCKS5 and HTTP proxy protocol encoding and parsing, designed to facilitate complex proxy applications

1 unstable release

Uses new Rust 2024

new 0.1.0 Mar 23, 2025

#25 in #sock

MIT/Apache

110KB
2K SLoC

Socks-Http-Kit

CI docs.rs codecov License: MIT or Apache 2.0

API Documentation

A lightweight library for SOCKS5 and HTTP proxy protocol encoding and parsing, designed to facilitate complex proxy applications.

This library serves as a foundation layer for higher-level proxy protocols. It provides a set of Tokio-based asynchronous functions specifically for parsing and processing SOCKS5 and HTTP proxy protocol requests and responses. The library employs an I/O-agnostic design, meaning it doesn't spawn internal threads, establish network connections, or perform DNS resolution. Instead, it delegates these controls entirely to the user code, enabling flexible integration with various proxy applications.

Socks-Http-Kit supports:

  • SOCKS5 client and server implementations.

    • Support for CONNECT, BIND, and UDP_ASSOCIATE commands.
    • Username/password authentication mechanism.
  • HTTP proxy client and server implementations.

    • HTTP BASIC authentication support.

License

This project is licensed under either of

Dependencies

~2.1–8MB
~56K SLoC