Florian Uekermann
3e45100f5d
replace unwrap with ?
3 years ago
Daniel Abramov
6c4d2bab04
Fix newly introduced clippy warnings
3 years ago
Daniel Abramov
5ad8cef6ff
Echo the `CloseFrame` when close is initiated
3 years ago
Dominik Nakamura
f4bb653aa0
Upgrade to rustls 0.20
3 years ago
PhotonQuantum
3f5d0985f0
Move ReadBuffer chunk to heap
3 years ago
Dominik Nakamura
32450ae5af
Add a connector to configure TLS config
4 years ago
Dominik Nakamura
5e0fde5dc6
Fix clippy warnings and deprecated settings
4 years ago
Dominik Nakamura
8b029baa8d
Fix wrong feature name when setting certs
4 years ago
Dominik Nakamura
3efb0544c6
Remove the rustls-tls feature flag
4 years ago
Dominik Nakamura
3fbd583f29
Enable root cert providers through feature flags
4 years ago
Daniel Abramov
83722c24aa
Clean up the read portion of the buffer
4 years ago
Daniel Abramov
ddddd791ef
Implement benchmarks for buffers
4 years ago
Daniel Abramov
2787031c2f
Replace `InputBuffer` with a faster alternative
...
We're also deprecating the usage of `input_buffer` crate, see:
https://github.com/snapview/input_buffer/issues/6#issuecomment-870548303
4 years ago
Yusuf Bera Ertan
a729b37b22
Update src/client.rs
...
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
4 years ago
Teymour Aldridge
94aef58646
Fix a typo in a docstring
4 years ago
Yusuf Bera Ertan
d7e2f0a72a
downgrade webpki, use rusttls-native-certs instead of webpki-roots
4 years ago
Maarten de Vries
abebb330af
Implement From<CapacityError> and From<UrlError> for Error.
4 years ago
Lukas Kalbertodt
5ce9e7ca39
Add `From<ProtocolError>` impl for `Error`
4 years ago
Dominik Nakamura
c101024c28
Add support for rustls as TLS backend ( #166 )
...
* Add support for rustls as TLS backend
* Use a "use-*" prefix for the TLS features
* Only enable rustls if native-tls is not enabled
* Allows several TLS components to coexist
* Update docs for rustls mentions
* Enable all features on docs.rs
* Rename TLS feature flags from "use-*" to "*-tls"
* Make native-tls the default
* Move TLS related errors to a separate enum
* Add changelog entry about rustls support
* Fix wrong naming in main error enum
* Simplify docs about tls feature flag usage
4 years ago
Maarten de Vries
96612748d1
Expose `handshake::derive_accept_key` as public API.
4 years ago
WiredSound
79dcf9f77c
Use matches! macro in tests
4 years ago
WiredSound
3e485ddb96
Rename UrlErrorType to just UrlError, implement using thiserror
4 years ago
WiredSound
98377cf3dd
Rename ProtocolErrorType to just ProtocolError, implement using thiserror
4 years ago
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
78d59f9266
Escape square brackets in doc comment
4 years ago
WiredSound
0b34bee94f
Add capacity error types
4 years ago
WiredSound
aaebb432f0
Fix clippy warnings
4 years ago
WiredSound
6f846da0e3
Add protocol error types
4 years ago
WiredSound
34c6e63d87
Add specific URL error types
4 years ago
Dominik Nakamura
82e09ea025
Remove remaining dynamic dispatch usage
4 years ago
Antoine Catton
208061ba28
Docfix: mio::tcp has been renamed to mio::net in its latest version ( #164 )
...
This a relic of the old name in the function documentation.
4 years ago
Austaras
4d70f63cbf
Add a custom response builder ( #158 )
...
* add custom reponse builder
* change names and shorten implemtation
* Re-format the code
Co-authored-by: Daniel Abramov <dabramov@snapview.de>
4 years ago
Constantin Nickel
8417078ef3
Update to bytes 1.0
4 years ago
Adam Bezecny (DHL IT Services)
c8c236056b
if streamlined
4 years ago
Adam Bezecny (DHL IT Services)
2e55ed0fcc
comment streamlined
4 years ago
Adam Bezecny (DHL IT Services)
9f292d21fc
minor fixes
4 years ago
Adam Bezecny (DHL IT Services)
4f7dab5d7b
documentation for server_allow_unmasked improved
4 years ago
Adam Bezecny (DHL IT Services)
a9adb42343
server_allow_unmasked changed from Option<bool> to bool
4 years ago
Adam Bezecny (DHL IT Services)
0121bf9682
WebSocketConfig extended to allow accepting unmasked client frames
4 years ago
Daniel Abramov
fcacea7c9f
chore: apply `clippy`
4 years ago
Daniel Abramov
96d9eb75e5
chore: apply `fmt` to the whole project
4 years ago
Daniel Abramov
09f5d34899
use 3 redirects as default for `connect`
4 years ago
Daniel Abramov
a8e06d2b39
clean up http error handling
4 years ago
Daniel Abramov
521f1a0767
clean up the redirect logic a bit
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
philipp
50bc1b5e90
Delegate into_client_request (4)
4 years ago
philipp
064fd9313f
Delegate into_client_request (3)
4 years ago