Daniel Abramov
a7daafdfc8
Merge pull request #156 from snapview/clean-ups
...
Regular maintenance
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
2638bd69c7
Merge pull request #148 from Redrield/feature/follow-3xx
...
Add facilities to allow clients to follow HTTP 3xx redirects
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
Daniel Abramov
2e711fb6fd
Merge pull request #154 from Horki/matches_macro_fix
...
matches!: use macros; remove unused imports
4 years ago
Horki
88ff5f371f
matches!: use macros; remove unused imports
4 years ago
Daniel Abramov
2853699f31
Merge pull request #152 from snapview/dependabot/cargo/env_logger-0.8.1
...
Update env_logger requirement from 0.7.1 to 0.8.1
4 years ago
Daniel Abramov
1571e8b601
Merge pull request #146 from snapview/dependabot/cargo/base64-0.13.0
...
Update base64 requirement from 0.12.0 to 0.13.0
4 years ago
dependabot[bot]
f62bfcba0e
Update env_logger requirement from 0.7.1 to 0.8.1
...
Updates the requirements on [env_logger](https://github.com/env-logger-rs/env_logger ) to permit the latest version.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.7.1...v0.8.1 )
Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
dependabot[bot]
33f8464211
Update base64 requirement from 0.12.0 to 0.13.0
...
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64 ) to permit the latest version.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.12.0...v0.13.0 )
Signed-off-by: dependabot[bot] <support@github.com>
4 years ago
Daniel Abramov
96a8499533
Merge pull request #143 from phimuemue/simpl
...
Some simplifications
4 years ago
philipp
50bc1b5e90
Delegate into_client_request (4)
4 years ago
philipp
064fd9313f
Delegate into_client_request (3)
4 years ago
philipp
90345c994a
Delegate into_client_request (2)
4 years ago
philipp
4cdc2edab1
Delegate into_client_request
4 years ago
philipp
599b677f5a
Avoid temporary variable `fin`
4 years ago
Daniel Abramov
31e087f325
Merge pull request #140 from Redrield/fix/dedup-reason
...
Deduplicate the reason line in HTTP responses
4 years ago
Redrield
bcf2b22d9e
Deduplicate the reason line in HTTP responses
...
The impl of Display for StatusCode already includes the canonical reason
if it exists. The current implementation duplicates this (e.g. the
status line will read "101 Switching Protocols Switching Protocols", or
"400 Bad Request Bad Request".
4 years ago
Daniel Abramov
006cec72ea
Merge pull request #135 from RAnders00/enable-dependabot
...
Enable dependabot
4 years ago
Ruben Anders
65b0837589
Enable dependabot
4 years ago
Daniel Abramov
faea043ec2
Merge pull request #134 from Zoldszemesostoros/patch-1
...
Make echo server compile
4 years ago
Zoldszemesostoros
e7bab13e6d
make echo server compile
...
The original code failed to compile with "expected item after doc comment" error message
4 years ago
Daniel Abramov
9d67240cab
cargo: add author
4 years ago
Daniel Abramov
1de6da9a3c
Bump version
4 years ago
Daniel Abramov
939c4d181c
Merge pull request #132 from sdroege/sha-1-0.9
...
Update to sha-1 0.9
4 years ago
Sebastian Dröge
849f248a94
Update to sha-1 0.9
4 years ago
Daniel Abramov
fd7de42347
Merge pull request #110 from najamelan/doc/mib
...
doc: be precise about max message sizes.
5 years ago
Daniel Abramov
6791dcc0d6
Merge pull request #119 from kids300/master
...
Fix ws request subportocol lowercase header
5 years ago
Daniel Abramov
744bd87a41
Merge pull request #130 from Krisa/patch-1
...
Allow statically linking
5 years ago
Christophe Vidal
fe4d631c97
Allow statically linking
...
Solving https://github.com/snapview/tungstenite-rs/issues/118 by using `features= ["tls-vendored"]` in the toml file
5 years ago
Alexey Galakhov
1a729bb362
Release version 0.11.0
5 years ago
Alexey Galakhov
bbaa48b4d6
Merge pull request #126 from Dushistov/fix-deprecation
...
Make tungstenite-rs more safe
5 years ago
Evgeniy A. Dushistov
5a95f12c6d
refactoring/apply_mask: reduce number of usage of unsafe to 1
...
Plus it should be faster now:
apply_mask/fallback/0 time: [24.282 ns 24.727 ns 25.255 ns]
apply_mask/fast/0 time: [11.921 ns 11.963 ns 12.011 ns]
apply_mask/fast_safe/0 time: [7.9340 ns 7.9807 ns 8.0261 ns]
apply_mask/fallback/1 time: [25.284 ns 25.710 ns 26.124 ns]
apply_mask/fast/1 time: [20.433 ns 20.476 ns 20.511 ns]
apply_mask/fast_safe/1 time: [9.3208 ns 9.3833 ns 9.4470 ns]
apply_mask/fallback/2 time: [16.051 ns 16.160 ns 16.275 ns]
apply_mask/fast/2 time: [20.564 ns 20.569 ns 20.574 ns]
apply_mask/fast_safe/2 time: [9.1449 ns 9.1830 ns 9.2189 ns]
apply_mask/fallback/3 time: [15.386 ns 15.548 ns 15.715 ns]
apply_mask/fast/3 time: [18.836 ns 18.867 ns 18.917 ns]
apply_mask/fast_safe/3 time: [8.3092 ns 8.3566 ns 8.4076 ns]
5 years ago
Evgeniy A. Dushistov
9764ac13a1
infra/apply_mask: test more case for apply_mask
...
make sure that input with len 0,1,2,3 also tested
5 years ago
Alexey Galakhov
3a24ca3f03
Merge pull request #125 from Dushistov/fix-from-for-close-code
...
Change Into to From for CloseCode to u16 conversation
5 years ago
Evgeniy A. Dushistov
de80b9bced
Change Into to From for CloseCode to u16 conversation
...
As stated in standard library documentation:
> One should always prefer implementing From over Into because implementing From automatically
> provides one with an implementation of Into thanks to the blanket implementation in the standard library.
And this provides the way to use u16::from(close_code)
5 years ago
kids300
fb83e8c791
rm to_string
5 years ago
Yan
16a33df195
fix ws subportocol lowercase header
5 years ago
Daniel Abramov
366700342b
Merge pull request #116 from mpdn/patch-1
...
Make mask public on FrameHeader
5 years ago
Mike Pedersen
1f744f1548
Make mask public on FrameHeader
...
Without the ability to get the mask, having the `FrameHeader` struct as a public type along with functions like `parse` is somewhat useless. I can't see any reason why it shouldn't be public.
5 years ago
Daniel Abramov
1ef18d54ad
Merge pull request #115 from rijenkii/patch-1
...
Update base64 dependency to 0.12.0
5 years ago
Rijenkii
4ef8aa981d
Update base64 dependency to 0.12.0
5 years ago
Daniel Abramov
0c429cba94
chore: remove deprecated `description()`
...
Fixes #111
5 years ago
Daniel Abramov
431b6d9241
Merge pull request #112 from najamelan/feature/get_config
...
Feature/get config
5 years ago
Naja Melan
9c48226c8f
chore: Remove needless closing/opening of the impl block on WebSocketContext.
5 years ago