n4n5
c21281abbc
Make url as feature and bump version ( #419 )
...
* make url usage as feature
* bump version
* fix: clearer test
* Update Cargo.toml
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
* Update CHANGELOG.md
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
---------
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
2024-05-13 21:57:54 +02:00
Félix Lescaudey de Maneville
0fa41973b4
Add builder for additional header values ( #400 )
...
* ADd builder for additional header values
* Update client.rs
* fix: docs
* feat: add test
* fix: typo
* add
---------
Co-authored-by: n4n5 <56606507+Its-Just-Nans@users.noreply.github.com>
Co-authored-by: n4n5 <its.just.n4n5@gmail.com>
2024-02-12 20:56:15 +01:00
Mark T. B. Carroll
8901dcc535
remove [] enclosing IPv6 host address
2023-06-06 13:47:09 +01:00
Daniel Abramov
b8ccbcf2a1
chore: update the documentation
...
Fixes #280 .
2022-04-19 19:39:19 +02:00
Daniel Abramov
d661f57224
client: overhaul of the request generation
2022-02-04 13:42:55 +01:00
Daniel Abramov
6c4d2bab04
Fix newly introduced clippy warnings
2021-10-19 22:43:30 +02:00
Dominik Nakamura
32450ae5af
Add a connector to configure TLS config
2021-07-23 21:26:44 +09:00
Dominik Nakamura
8b029baa8d
Fix wrong feature name when setting certs
2021-07-14 00:21:37 +09:00
Dominik Nakamura
3efb0544c6
Remove the rustls-tls feature flag
2021-07-13 17:46:48 +09:00
Dominik Nakamura
3fbd583f29
Enable root cert providers through feature flags
2021-07-12 22:37:52 +09:00
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
2021-07-05 18:38:06 +02:00
Yusuf Bera Ertan
a729b37b22
Update src/client.rs
...
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
2021-05-26 16:07:54 +03:00
Yusuf Bera Ertan
d7e2f0a72a
downgrade webpki, use rusttls-native-certs instead of webpki-roots
2021-05-19 01:54:50 +03: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
WiredSound
3e485ddb96
Rename UrlErrorType to just UrlError, implement using thiserror
2021-01-09 21:31:03 +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
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
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
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
philipp
50bc1b5e90
Delegate into_client_request (4)
2020-09-21 18:57:43 +02:00
philipp
064fd9313f
Delegate into_client_request (3)
2020-09-21 18:57:43 +02:00
philipp
90345c994a
Delegate into_client_request (2)
2020-09-21 18:57:43 +02:00
philipp
4cdc2edab1
Delegate into_client_request
2020-09-21 18:57:43 +02:00
Alfie John
7ca9bd6f2f
Minor grammar fix
2019-12-01 01:13:54 +11:00
Sebastian Dröge
07d4721ffd
Add type aliases for Response/Request with a fixed body type
...
Simplifies correct usage of the API.
2019-11-24 18:05:40 +01:00
Sebastian Dröge
9020840f84
Remove custom Request/Response types from client code
...
Fixes https://github.com/snapview/tungstenite-rs/issues/92
2019-11-24 18:05:34 +01:00
Danny Browning
6369d48579
Fix compilation error without default features
2019-09-16 06:38:54 -06:00
Danny Browning
02684b4946
Try removing unpin
2019-09-12 12:58:42 -06:00
Danny Browning
614a5068fa
Tokio-Tungstenite Async Changes
...
Changes required for tokio-tungstenite async implementation.
2019-09-11 19:06:21 -06:00
Artem Vorotnikov
cbf80ecc76
Edition 2018, formatting, clippy fixes
2019-08-26 21:05:24 +03:00
Simon Sapin
4b1d89daf1
Update the url crate to 2.0
2019-07-24 16:48:13 +02:00
Alexey Galakhov
b93abcf900
Merge pull request #27 from snapview/websocket-config
...
Allow the configuration of `WebSocket`
2018-06-26 11:35:34 +02:00
Daniel Abramov
3a58069db2
Create helpers for config-like functions
...
As suggested by @agalakhov
2018-06-26 11:12:57 +02:00
Ryan Leckey
ef8e41f63f
prepare for native-tls 0.2
2018-06-19 11:10:08 -07:00
Daniel Abramov
00303fa60c
Make the websocket configurable
2018-05-25 10:41:16 +02:00
Daniel Abramov
44a15c9eab
Implements #6 (client/server headers access)
2017-07-28 14:36:24 +02:00
Daniel Abramov
f34c488217
Add basic support for examining headers ( #6 )
2017-07-28 14:35:42 +02:00
Alexey Galakhov
bd9ac9673e
chore: cleanup docs and warnings, strict docs
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2017-05-23 02:50:29 +02:00
Alexey Galakhov
686bc51b84
stream: set TCP_NODELAY on connect
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2017-05-23 02:14:34 +02:00
Alexey Galakhov
f696771069
Generalize connect() interface.
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2017-05-22 23:45:50 +02:00
Alexey Galakhov
9a3b29b05e
Merge branch 'devel'
2017-04-04 13:25:14 +02:00
Alexey Galakhov
24f3bb7807
Add the possibility to pass extra request headers.
...
Closes : #5
Suggestions for a more convenient API are welcome.
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2017-04-03 21:34:14 +02:00