Daniel Abramov
f59f20bc80
doc: update README
2021-03-01 17:38:10 +01:00
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
2021-02-08 13:58:42 +01:00
Alexey Galakhov
985d657192
Merge pull request #174 from de-vri-es/derive-accept-key
...
Expose `handshake::derive_accept_key` as public API.
2021-02-06 23:43:36 +01:00
Maarten de Vries
96612748d1
Expose `handshake::derive_accept_key` as public API.
2021-02-06 18:41:58 +01:00
Matěj Laitl
5586d0af51
Merge pull request #168 from WiredSound/master
...
Create specific error types for protocol, URL, and capacity errors
2021-01-11 15:52:45 +01:00
WiredSound
79dcf9f77c
Use matches! macro in tests
2021-01-11 14:14:36 +00:00
WiredSound
8b88fb2444
Remove unnecessary changelog lines
2021-01-11 12:09:07 +00:00
Daniel Abramov
36f617ae1b
Update README.md
...
Closes #157
2021-01-10 20:28:50 +01:00
WiredSound
7c9e684ded
Add entry to CHANGELOG.md for version 0.13.0
2021-01-09 21:46:00 +00:00
WiredSound
f4aa926092
Change ProtocolErrorType to ProtocolError in test
2021-01-09 21:35:06 +00:00
WiredSound
3e485ddb96
Rename UrlErrorType to just UrlError, implement using thiserror
2021-01-09 21:31:03 +00:00
WiredSound
98377cf3dd
Rename ProtocolErrorType to just ProtocolError, implement using thiserror
2021-01-09 21:23:03 +00:00
WiredSound
652a6b776e
Rename CapacityErrorType to just CapacityError, implement using thiserror
2021-01-09 21:12:33 +00:00
WiredSound
e6d66698a3
Use thiserror to streamline the implementation of the main Error type
2021-01-09 21:04:41 +00:00
WiredSound
a1b4b2de61
Bump version to 0.13.0
2021-01-09 20:42:05 +00:00
WiredSound
78d59f9266
Escape square brackets in doc comment
2021-01-09 20:38:34 +00:00
WiredSound
b85a661967
Minor change to wording of README
2021-01-09 20:38:34 +00:00
WiredSound
0b34bee94f
Add capacity error types
2021-01-09 20:38:34 +00:00
WiredSound
aaebb432f0
Fix clippy warnings
2021-01-09 20:38:34 +00:00
WiredSound
6f846da0e3
Add protocol error types
2021-01-09 20:38:30 +00:00
WiredSound
34c6e63d87
Add specific URL error types
2021-01-09 20:30:54 +00:00
Daniel Abramov
7265a8560c
Add a changelog
...
Fixes #45
2021-01-08 13:17:35 +01:00
Daniel Abramov
6087e07aed
Bump version
2021-01-08 13:15:38 +01:00
Daniel Abramov
e1ae3872cd
Merge pull request #159 from adambezecny/master
...
WebSocketConfig extended to allow accepting unmasked client frames
2021-01-08 12:52:57 +01:00
Daniel Abramov
bd2a43c40a
Merge pull request #170 from dnaka91/update-input-buffer
...
Update input_buffer to use the official version
2021-01-08 12:45:36 +01:00
Dominik Nakamura
d24e3e4734
Update input_buffer to use the official version
2021-01-08 10:29:45 +09:00
Daniel Abramov
06e5689cca
Merge pull request #167 from dnaka91/remove-dyn-dispatch
...
Remove remaining dynamic dispatch usage
2021-01-07 19:09:13 +01:00
Dominik Nakamura
82e09ea025
Remove remaining dynamic dispatch usage
2021-01-02 16:45:50 +09:00
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.
2020-12-30 17:35:40 +01:00
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>
2020-12-30 17:35:10 +01:00
Daniel Abramov
b0a6bae832
Merge pull request #163 from nickelc/bytes
...
Update to bytes 1.0
2020-12-30 17:19:24 +01:00
Constantin Nickel
75bf9b8730
use snapview/inputer_buffer@master
2020-12-29 21:53:37 +01:00
Daniel Abramov
56239c8e2f
Merge pull request #161 from snapview/dependabot/cargo/rand-0.8.0
...
Update rand requirement from 0.7.2 to 0.8.0
2020-12-29 21:37:46 +01:00
Constantin Nickel
8417078ef3
Update to bytes 1.0
2020-12-23 09:37:43 +01:00
dependabot[bot]
ecc3997bde
Update rand requirement from 0.7.2 to 0.8.0
...
Updates the requirements on [rand](https://github.com/rust-random/rand ) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.7.2...0.8.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 07:07:33 +00:00
Adam Bezecny (DHL IT Services)
c8c236056b
if streamlined
2020-12-02 22:43:47 +01:00
Adam Bezecny (DHL IT Services)
2e55ed0fcc
comment streamlined
2020-12-01 19:21:45 +01:00
Adam Bezecny (DHL IT Services)
9f292d21fc
minor fixes
2020-12-01 19:19:45 +01:00
Adam Bezecny (DHL IT Services)
4f7dab5d7b
documentation for server_allow_unmasked improved
2020-11-30 19:25:55 +01:00
Adam Bezecny (DHL IT Services)
a9adb42343
server_allow_unmasked changed from Option<bool> to bool
2020-11-27 21:38:33 +01:00
Adam Bezecny (DHL IT Services)
0121bf9682
WebSocketConfig extended to allow accepting unmasked client frames
2020-11-26 20:51:50 +01:00
Daniel Abramov
a7daafdfc8
Merge pull request #156 from snapview/clean-ups
...
Regular maintenance
2020-11-17 13:37:32 +01:00
Daniel Abramov
fcacea7c9f
chore: apply `clippy`
2020-11-17 12:40:52 +01:00
Daniel Abramov
96d9eb75e5
chore: apply `fmt` to the whole project
2020-11-17 12:40:52 +01:00
Daniel Abramov
2638bd69c7
Merge pull request #148 from Redrield/feature/follow-3xx
...
Add facilities to allow clients to follow HTTP 3xx redirects
2020-11-17 11:41:51 +01:00
Daniel Abramov
09f5d34899
use 3 redirects as default for `connect`
2020-11-17 11:17:56 +01:00
Daniel Abramov
a8e06d2b39
clean up http error handling
2020-11-16 19:49:17 +01:00
Daniel Abramov
521f1a0767
clean up the redirect logic a bit
2020-11-16 19:25:08 +01:00
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
2020-11-16 18:13:39 +01:00
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.
2020-11-16 18:13:39 +01:00