Commit Graph

21 Commits

Author SHA1 Message Date
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
Alex Butler 9f0af2a2e3 Test that no additional flushes are called after pong flush success 2023-12-05 22:23:31 +01:00
Alex Butler 2d5b3e18de Fix auto pong responses not flushing after block
Retry pong flushes on read.
Add read_usage_auto_pong_flush scenario test
2023-12-05 22:23:31 +01:00
Constantin Nickel 8ca9b2314c Replace deprecated `net2` dev dependency with `socket2` 2023-11-16 11:33:58 +01:00
Alex Butler f6a610f925 Add write_flush_behaviour test 2023-05-30 19:11:04 +01:00
Alex Butler 84a54b76e6 Rename methods to `read`, `send`, `write` & `flush`
Refine docs
Add `send` method
Add deprecated versions of write_message, write_pending,
read_message
Handle pong WriteBufferFull error
Add changelog
2023-05-27 13:19:13 +01:00
Daniel Abramov 7e4a15446d Properly activate features for examples and tests 2023-04-12 16:30:15 +02:00
Icelk 4023390d38 Make handshake dependencies optional. 2022-08-30 09:22:38 +02:00
Dominik Nakamura 32450ae5af
Add a connector to configure TLS config 2021-07-23 21:26:44 +09:00
Dominik Nakamura 3efb0544c6
Remove the rustls-tls feature flag 2021-07-13 17:46:48 +09: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 f4aa926092 Change ProtocolErrorType to ProtocolError in test 2021-01-09 21:35:06 +00:00
WiredSound 6f846da0e3 Add protocol error types 2021-01-09 20:38:30 +00:00
Daniel Abramov 96d9eb75e5 chore: apply `fmt` to the whole project 2020-11-17 12:40:52 +01:00
Alexey Galakhov 615bf71748 test: check close with SO_LINGER
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-13 19:09:58 +01:00
Sebastian Dröge 7a4779b6f6 Run everything through rustfmt 2019-11-24 18:05:40 +01:00
Naja Melan 2004309814 integration test for no_send_after_close 2019-09-19 20:32:04 +02:00
Naja Melan 2e72b562ce Improve error reporting from tests 2019-09-12 02:55:20 +02:00
Naja Melan a3625fbaa9 integration test verifying that we can read messages after initiating close handshake. 2019-09-12 01:13:38 +02:00
Artem Vorotnikov cbf80ecc76
Edition 2018, formatting, clippy fixes 2019-08-26 21:05:24 +03:00
Daniel Abramov dbc8bd7b71 Fix issue with hanging server connection 2019-08-07 18:56:40 +02:00