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
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
Naja Melan
1f407f1005
feat: Allow reading the configuration.
...
This allows wrapper types to correctly split data before creating websocket
messages, guaranteeing to respect the max size.
Notably when the WebSocket is provided by user code.
5 years ago
Alexey Galakhov
17732694d4
trivial: bump version
...
Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
5 years ago
Alexey Galakhov
faf4b598a0
Merge pull request #106 from macpp/firefox-connection
...
Allow firefox to connect
5 years ago
macpp
0bfc217cfc
allow firefox to connect
5 years ago
Alexey Galakhov
6b3423292f
trivial: fix clippy warning
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Daniel Abramov
61f46be644
Merge pull request #105 from snapview/can-read-write
...
websocket: add `can_read()` and `can_write()`
5 years ago
Alexey Galakhov
85f211230a
websocket: add `can_read()` and `can_write()`
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
010266e001
test: autobahn: add strict error reporting
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
da3acc107e
protocol: handle "Connection reset by peer" in closing state
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
615bf71748
test: check close with SO_LINGER
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
0eecc28cc7
travis: force build fail on autobahn failure
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
c08f2c72ff
client: correct port in request
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
9ec11cbc7a
client: cover request generation with tests
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Daniel Abramov
6d8358cd19
Merge pull request #98 from sdroege/http-0.2
...
Update to http 0.2
5 years ago
Sebastian Dröge
c3aff4ae9e
Update to bytes 0.5 and input_buffer 0.3
5 years ago
Sebastian Dröge
c2f713b6bb
Update to http 0.2
5 years ago
Alexey Galakhov
1da9614ab2
Merge pull request #97 from alfiedotwtf/master
...
Minor grammar fix
5 years ago
Alfie John
7ca9bd6f2f
Minor grammar fix
5 years ago
Daniel Abramov
345d262972
Merge pull request #93 from sdroege/http-types
...
Base HTTP-types (request, headers, response, status code, etc) on the ones from the http crate
5 years ago
Sebastian Dröge
e1a5153f40
Bump version to 0.10.0 because of API changes
5 years ago
Sebastian Dröge
88760b8b59
Fix various clippy warnings
5 years ago
Sebastian Dröge
7a4779b6f6
Run everything through rustfmt
5 years ago
Sebastian Dröge
f659af4493
Update examples to compile again
5 years ago
Sebastian Dröge
07d4721ffd
Add type aliases for Response/Request with a fixed body type
...
Simplifies correct usage of the API.
5 years ago
Sebastian Dröge
1ecc4f900d
Use Response for the server handshake callback too
...
And add a public create_response(&Request) function that creates an
initial response. This can be used to simplify integration into existing
HTTP libraries.
5 years ago
Sebastian Dröge
09a9b7ceef
Remove custom Request/Response types from server code
...
Fixes https://github.com/snapview/tungstenite-rs/issues/92
5 years ago
Sebastian Dröge
9020840f84
Remove custom Request/Response types from client code
...
Fixes https://github.com/snapview/tungstenite-rs/issues/92
5 years ago
Sebastian Dröge
38a7d1a375
Remove custom Headers type and use http::HeaderMap instead
...
Fixes https://github.com/snapview/tungstenite-rs/issues/92
5 years ago
Alexey Galakhov
bb801430c8
Bump version
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
4e8d6058d4
Version 0.9.2 released.
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Daniel Abramov
af1fe25efa
Merge pull request #88 from dbrgn/fix-typo
...
Fix typo in docs
5 years ago
Danilo Bargen
5f3f4c016e
Fix typo in docs
5 years ago
Daniel Abramov
f7e9cb097e
Merge pull request #87 from KevinWMatthews/readme_fix
...
Fix typo in README.md example
5 years ago
Kevin W Matthews
4cb27d08e4
Fix typo in README.md example
5 years ago
Daniel Abramov
0cf2a777df
Bump version
5 years ago
Daniel Abramov
c291395d3b
Fixes #86
5 years ago
Alexey Galakhov
2903a02ef5
frame: correct possible infinite loop on sending
...
Closes : #83
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Daniel Abramov
9e4244aecf
Merge pull request #81 from najamelan/cleanup/use_can_read
...
Make use of can_read to clean up some code
5 years ago
Naja Melan
17fe7987eb
Make use of can_read
5 years ago
Daniel Abramov
dd602455c4
Merge pull request #79 from najamelan/docs/close
...
WIP: Add some documentation to WebSocket and Error.
5 years ago
Daniel Abramov
b807f76ed1
Update error description
...
Remove the statement which is not valid anymore.
5 years ago
Daniel Abramov
0da592a9d4
Merge pull request #74 from najamelan/bugfix/no_send_after_close
...
Do not allow sending messages after sending a close frame
5 years ago