Documentation
ΒΆ
Overview ΒΆ
Package blazehttp provides adapters between BlazeHTTP and the standard net/http ecosystem. It allows using net/http.Handler implementations with the BlazeHTTP server and vice versa.
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
func WrapBlazeHandler ΒΆ
func WrapBlazeHandler(h http2.RequestHandler) http.Handler
WrapBlazeHandler adapts a BlazeHTTP RequestHandler for use as a standard net/http.Handler. This allows embedding BlazeHTTP handlers in net/http servers or middleware chains.
func WrapHandler ΒΆ
func WrapHandler(h http.Handler) http2.RequestHandler
WrapHandler adapts a standard net/http.Handler for use with BlazeHTTP. This enables using any existing http.Handler (e.g. from popular routers or middleware) with the high-performance BlazeHTTP server.
Types ΒΆ
This section is empty.
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
bench
|
|
|
blazehttp
command
|
|
|
fasthttp
command
|
|
|
nethttp
command
|
|
|
Package client provides an HTTP/2 client with TLS and HTTP/2 fingerprinting.
|
Package client provides an HTTP/2 client with TLS and HTTP/2 fingerprinting. |
|
h2fingerprint
Package h2fingerprint defines HTTP/2 connection fingerprint profiles.
|
Package h2fingerprint defines HTTP/2 connection fingerprint profiles. |
|
tls
Package tls provides TLS fingerprinting for the BlazeHTTP client.
|
Package tls provides TLS fingerprinting for the BlazeHTTP client. |
|
examples
|
|
|
benchmark
command
Command benchmark is a BlazeHTTP server optimized for benchmarking with pre-allocated response bodies and zero-alloc handlers.
|
Command benchmark is a BlazeHTTP server optimized for benchmarking with pre-allocated response bodies and zero-alloc handlers. |
|
echo
command
Command echo is a BlazeHTTP server that echoes the request body back in the response, demonstrating POST body handling.
|
Command echo is a BlazeHTTP server that echoes the request body back in the response, demonstrating POST body handling. |
|
fileserver
command
Command fileserver serves static files from a directory using BlazeHTTP, with directory traversal protection.
|
Command fileserver serves static files from a directory using BlazeHTTP, with directory traversal protection. |
|
hello
command
Command hello is a minimal BlazeHTTP server demonstrating HTTP/1.1 and HTTP/2 support with a single handler and auto-generated TLS certificate.
|
Command hello is a minimal BlazeHTTP server demonstrating HTTP/1.1 and HTTP/2 support with a single handler and auto-generated TLS certificate. |
|
internal
|
|
|
debug
Package debug provides conditional logging for BlazeHTTP.
|
Package debug provides conditional logging for BlazeHTTP. |
|
util
Package util provides zero-allocation utility functions for byte slice and string manipulation used throughout BlazeHTTP.
|
Package util provides zero-allocation utility functions for byte slice and string manipulation used throughout BlazeHTTP. |
|
pkg
|
|
|
bytespool
Package bytespool provides a pool of reusable byte slices organized by size classes.
|
Package bytespool provides a pool of reusable byte slices organized by size classes. |
|
flowcontrol
Package flowcontrol implements HTTP/2 flow control windows per RFC 9113 Β§5.2.
|
Package flowcontrol implements HTTP/2 flow control windows per RFC 9113 Β§5.2. |
|
frame
Package frame implements HTTP/2 frame reading and writing per RFC 9113.
|
Package frame implements HTTP/2 frame reading and writing per RFC 9113. |
|
header
Package header provides a zero-allocation HTTP/1.1 request parser.
|
Package header provides a zero-allocation HTTP/1.1 request parser. |
|
hpack
Package hpack implements HPACK header compression as defined in RFC 7541.
|
Package hpack implements HPACK header compression as defined in RFC 7541. |
|
stream
Package stream implements HTTP/2 stream state management per RFC 9113 Β§5.
|
Package stream implements HTTP/2 stream state management per RFC 9113 Β§5. |
|
http1
Package http1 implements the HTTP/1.1 server handler for BlazeHTTP.
|
Package http1 implements the HTTP/1.1 server handler for BlazeHTTP. |
Click to show internal directories.
Click to hide internal directories.