Docs.rs
gproxy-protocol-1.0.20
gproxy-protocol 1.0.20
Permalink
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
LeenHawk
Dependencies
base64 ^0.22
normal
http ^1
normal
serde ^1
normal
serde_json ^1
normal
time ^0.3
normal
tracing ^0.1
normal
url ^2
normal
Versions
14.75%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module stream
gproxy_
protocol
1.0.20
Module stream
Module Items
Structs
Functions
In crate gproxy_
protocol
gproxy_protocol
Module
stream
Copy item path
Source
Structs
§
SseTo
Ndjson
Rewriter
Incremental SSE -> NDJSON converter.
Functions
§
drain_
lines
Drains complete
\n
-terminated lines from
pending
into
out
, stripping trailing
\r\n
. Empty lines are skipped.
split_
lines
Splits
bytes
into newline-delimited lines. Complete lines go through
drain_lines
; any trailing bytes without a terminating
\n
are also emitted as a final element.
split_
lines_
owned
Convenience wrapper that returns owned lines instead of appending to a vec.
sse_
to_
ndjson_
stream
Converts internal standard SSE payload (
data: ...\n\n
) into NDJSON.