2 stable releases
1.1.7 | Jun 10, 2024 |
---|
#208 in WebSocket
195KB
4K
SLoC
SHDP
Tends for Streamlined Hyper Data Protocol. It allows sending and receiving data in a compressed-way, especially when sending files.
Basic implementations are onto 2 (two) websites:
Those websites use SHDP to retrieve HTML, CSS or JS content dynamically while the user is browsing the website.
[!NOTE] SHDP will not try to replace HTTP nor TCP protocols. It is just a way to send data in a compressed way.
[!IMPORTANT] SHDP is not standardized yet. It is still in development.
How it works
See the SHDP Protocol page to understand the binary structure of the protocol.
Implementations
- Rust - The first implementation of SHDP is in Rust. It is a library that can be used in any Rust project.
License
SHDP is licensed under the MIT License. See the LICENSE file for more information.
lib.rs
:
Features
By default, SHDP is compiled without any optional features except for tcp-server
.
Feature | Description |
---|---|
serde |
Support for JSON (de)serialization. |
tcp-server |
Support for server TCP connections. (enabled by default). |
tcp-client |
Support for client TCP connections. |
ws-server |
Support for server WebSocket connections |
ws-client |
Support for client WebSocket connections. |
wss-server |
Support for server Secured WebSocket connections. |
wss-client |
Support for client Secured WebSocket connections. |
tls-server |
Support for server TLS connections. |
tls-client |
Support for client TLS connections. |
debug |
Enable debug logs. |
Dependencies
~1–17MB
~239K SLoC