Josh Matthews
b1510d9ad5
Upgrade headers, headers-core, and hyper_serde.
2019-06-13 11:08:16 -04:00
oneturkmen
9034fb64b7
Net: removed opts::get() usage
2019-06-06 18:48:17 -06:00
Lucas Fantacuci
6b2be9b31d
Implementing the builder pattern for RequestInit
2019-04-10 14:01:30 -03:00
Shotaro Yamada
c44a2febe6
Remove redundant .clone()
s
2018-12-11 10:43:51 +09:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
Pyfisch
2481ad25f8
Rustfmt net crate
2018-11-03 15:29:01 +01:00
Bastien Orivel
024b40b39d
Update hyper to 0.12
2018-11-01 19:17:36 +01:00
Bastien Orivel
75c746655c
The WS protocols should be case sensitive, not insensitive
2018-08-16 15:50:50 +02:00
Bastien Orivel
73ef02ff17
Handle secure websockets
...
Fixes #20816
2018-08-16 00:24:19 +02:00
Bastien Orivel
2e11bc10fb
Replace servo-websocket by ws
...
This is heavily based on previous work done in #16012 .
Fixes #14517
2018-08-15 16:53:48 +02:00
Bastien Orivel
f48d0928d5
Update servo-websocket to 0.21
2018-03-15 02:05:00 +01:00
Simon Sapin
793bebfc0e
Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)
2017-11-09 16:56:39 +01:00
Keith Yeung
99f9696a24
Merge functionality of WebsocketConnect into Fetch
2017-10-24 20:54:19 -07:00
Keith Yeung
c6bb1cb9d5
Merge request type and destination
2017-10-23 11:19:35 -07:00
Keith Yeung
b50bcdc8fc
Rename basic fetch to scheme fetch
2017-08-08 09:27:17 -07:00
Josh Matthews
6f590a87bf
Move hosts module into net crate. Remove obsolete functions.
2017-04-06 19:25:47 +09:00
Anthony Ramine
5313e00e3a
Pass the url by value to websocket_loader::main_fetch
2017-04-05 14:46:52 +02:00
Anthony Ramine
a600a60a09
Use set_default_accept in websocket_loader
2017-04-04 13:17:19 +02:00
Anthony Ramine
053aaedb52
Properly set Accept-Language in websocket_loader
2017-04-04 12:53:08 +02:00
Anthony Ramine
fbd42bb4f8
Use cookie::from_cookie_string in websocket_loader
2017-04-04 12:50:25 +02:00
Anthony Ramine
3485c8371e
Pass http_state around in websocket_loader
2017-04-03 23:54:25 +02:00
Anthony Ramine
64ba597a3a
Move Arc out of HttpState
2017-04-03 14:00:36 +02:00
ddh
e527c9a991
Update Hyper and OpenSSL
2017-03-31 16:32:21 +02:00
Anthony Ramine
19a2516e10
Disable wss support
...
None of the existing websocket libraries are currently able to cope
with openssl 0.9 and be featureful, so we are disabling wss for now
to land openssl 0.9.
2017-03-31 16:18:47 +02:00
Anthony Ramine
d022535f9c
Make the WebSocket handshake ourselves to ease switching libs
...
We need to switch to tungstenite to finally update openssl, this commit
rewrites the whole websocket infrastructure to properly follow the Fetch
spec and to make switching to a different websocket library easier.
2017-03-29 19:17:27 +02:00
Anthony Ramine
8796a82b9f
Put websocket_loader::init first in its module
2017-03-26 16:15:12 +02:00
Anthony Ramine
bc5c4fa892
Rework replace_hosts and host_replacement
...
They do less cloning now.
2017-03-26 16:14:22 +02:00
Anthony Ramine
28e4252a05
Remove some useless thread spawning in websocket_loader
2017-03-24 12:46:38 +01:00
Anthony Ramine
a6d22b1a35
Only pass the protocol in use in to establish a WS connection
2017-03-24 11:09:30 +01:00
Anthony Ramine
0bd54b904b
Properly follow the spec in WebSocket::Constructor
2017-03-24 09:43:14 +01:00
Anthony Ramine
bba0be13dd
Make ServoUrl::as_url return a &Url
2017-03-23 15:37:32 +01:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Manish Goregaokar
6e29b872d7
Test fixes:
...
- Hack to stop hitting unreachable on referer
- add fetch_done to make sync work
- Make datauris work by setting the response URI, spec bug
- Allow for empty bodies
- Make request bodies work (pass to http, fix fencepost in iter count)
2016-06-10 20:53:36 +05:30
Bob
27b4ac6150
check close on both incoming/outgoing websocket
...
Need to make sure close is only sent to the server once, either from a
client initiation or from a server echo. This adds the sent check to
both incoming and outgoing threads.
2016-06-10 13:47:51 +01:00
Josh Matthews
3cb8af20c2
Remove empty lines following braces.
2016-05-27 13:32:05 -04:00
Simon Sapin
7932ab6ac2
Upgrade to rust-url 1.0 and hyper 0.9
2016-04-23 20:27:58 +02:00
Anthony Ramine
7c1dd54895
Update to Rust 2016-03-05
2016-03-06 10:36:49 +01:00
Sam Gibson
4f736e6f7c
Trigger WebSocket error event
...
Trigger a WebSocket error after receiving an invalid message from the server
2016-02-26 09:43:12 +01:00
Simon Sapin
4c72be6911
Update websocket
2016-02-19 15:34:41 +01:00
Rebecca
cf6fd6dafe
Add support for websocket request and response cookies
...
Also change expected behavior to pass for all in tests/wpt/web-platform-tests/websockets/cookies
2016-02-17 14:50:52 -05:00
James Sanders
d121958a17
Make closing related code more clear and more correct
2016-01-18 17:37:16 -07:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
jmr0
7d0bede8ba
adding initial support for websocket subprotocol negotation
2015-12-17 09:17:15 -05:00
Nova Fallen
e8c8277f34
move websocket creation to resource task
2015-12-08 02:04:40 -05:00