docs: unify header to import path for package docs

This commit is contained in:
yusing
2026-02-18 03:25:32 +08:00
parent 7baf0b6fe5
commit 20695c52e8
47 changed files with 56 additions and 70 deletions

View File

@@ -1,4 +1,4 @@
# Socket Proxy Reverse Proxy
# socket-proxy/pkg/reverseproxy
This package provides an HTTP reverse proxy implementation for proxying requests to Unix sockets (typically Docker sockets). It is based on Go's `net/http/httputil.ReverseProxy` with simplifications for socket proxying use cases.
@@ -16,7 +16,6 @@ This package provides an HTTP reverse proxy implementation for proxying requests
1. **Director only**: Only the `Director` function is supported. The stdlib's `Rewrite` type and `ModifyResponse` hook are removed.
2. **Context-aware body copying**: Uses `ioutils.CopyCloseWithContext` which:
- Respects request context for cancellation
- Uses `Content-Length` for optimal copying when available
- Properly handles trailer headers