WiredSound
652a6b776e
Rename CapacityErrorType to just CapacityError, implement using thiserror
4 years ago
WiredSound
e6d66698a3
Use thiserror to streamline the implementation of the main Error type
4 years ago
WiredSound
0b34bee94f
Add capacity error types
4 years ago
WiredSound
6f846da0e3
Add protocol error types
4 years ago
WiredSound
34c6e63d87
Add specific URL error types
4 years ago
Daniel Abramov
96d9eb75e5
chore: apply `fmt` to the whole project
4 years ago
Daniel Abramov
a8e06d2b39
clean up http error handling
4 years ago
Redrield
60f7b0f024
Fix some code-review issues
...
* Replace Redirection error with a general Http error that owns the
response
* Make the default client connect function iterative instead of
recursive
* Add a limit to the amount of redirects a client will attempt to
perform
4 years ago
Redrield
6bce14fa26
Add facilities to allow clients to follow HTTP 3xx redirects
...
* The connect() function defined in this crate will automatically follow
redirecting responses.
* Adds Error::Redirection, which is a special case of Error::Http that
extracts the redirection target from the response headers, and stores it
in the error object. Client implementations that build upon tungstenite
can use this to implement redirecting.
* A catch-all solution for redirects is not possible due to the
abstraction transforming socket types to Read + Write, implementations
that use the client_* methods need to handle redirections themselves.
4 years ago
Horki
88ff5f371f
matches!: use macros; remove unused imports
4 years ago
Daniel Abramov
0c429cba94
chore: remove deprecated `description()`
...
Fixes #111
5 years ago
Sebastian Dröge
9020840f84
Remove custom Request/Response types from client code
...
Fixes https://github.com/snapview/tungstenite-rs/issues/92
5 years ago
Sebastian Dröge
38a7d1a375
Remove custom Headers type and use http::HeaderMap instead
...
Fixes https://github.com/snapview/tungstenite-rs/issues/92
5 years ago
Daniel Abramov
b807f76ed1
Update error description
...
Remove the statement which is not valid anymore.
5 years ago
Naja Melan
f818322a25
Add some documentation to WebSocket and Error.
5 years ago
Artem Vorotnikov
cbf80ecc76
Edition 2018, formatting, clippy fixes
5 years ago
Alexey Galakhov
b8f7d3668e
close: refine close semantics
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
6 years ago
Teddy DeRego
5742c822ee
WebSocket::write_message will no longer buffer unlimited messages - it will only buffer a configurable number of outbound messages. Needed for snapview/tokio-tungstenite#35 .
7 years ago
Alexey Galakhov
bd9ac9673e
chore: cleanup docs and warnings, strict docs
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
8 years ago
Alexey Galakhov
66e30b2767
Return close frame with ConnectionClosed
...
This is a breaking change, thus bump the API version.
Closes : #10
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
8 years ago
Alexey Galakhov
e0eecd28b1
Refactor TLS handling
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
8 years ago
Alexey Galakhov
b7557f1baa
refactor: make handshake completely async
8 years ago
Alexey Galakhov
de1fb673b2
error: correct UTF-8 error handling
8 years ago
Alexey Galakhov
4714773370
close: implement complete close handshake
8 years ago
Alexey Galakhov
e63f594a14
Initial commit, mostly working client
8 years ago