Eduard Burtescu
00e8e5f77d
Use the correct log crate and setup env_logger in main.
2015-06-06 23:20:40 +03:00
Manish Goregaokar
f80f99fe1e
Move to latest hyper everywhere
2015-06-02 20:12:14 +05:30
Corey Farwell
8e3f4bba85
Reduce max line length from 150 to 120 characters
...
Part of https://github.com/servo/servo/issues/6041
2015-05-24 00:01:49 -04:00
Simon Sapin
8292f5749e
Upgrade to Hyper 0.4.0
2015-05-12 16:48:21 +02:00
Himaja
01eb31ae8a
1. Add an Option<Pipeline_id> field to the LoadData struct, and a corresponding parameter to LoadData::new()
...
2. Change addEvent in the NetworkEventActor to add_request and add_response
2015-05-05 12:31:40 -04:00
Himaja
6e91ebb1fe
1. Add an enum type NetworkEventMessage for handling both HttpRequest and HttpResponse messages
...
2. Change run_server to handle network events
3. Add a unique id to track request-actor associations
4. Update the network event actor
2015-05-05 11:50:00 -04:00
Himaja
9f4a88bc48
Initial changes for devtools support for logging HTTP requests.
...
Add a NetworkEventActor to devtools/actors/
Authors:
Ashritha Mohan Ram <amohanr@ncsu.edu>
Himaja Valavala <hsvalava@ncsu.edu>
Anand Chandrasekar <achandr9@ncsu.edu>
Yiyang Wang <ywang95@ncsu.edu>
2015-05-05 11:49:26 -04:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Glenn Watson
786e24bde0
Handle gzip decompression failure (encountered during jquery test suite work) without panic.
2015-04-30 10:10:21 +10:00
bors-servo
21c38d0de8
Auto merge of #5424 - bdero:bdero/accept-header, r=jdm
...
The value of the header is: `text/html;q=0.9,*/*;q=0.8`
Closes #5399
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5424 )
<!-- Reviewable:end -->
2015-04-26 22:13:30 -05:00
Brandon DeRosier
0a7a853a01
Add Accept header to HTTP loader
...
The value of the header is the same as that of Firefox 35.0.1:
`text/html, application/xhtml+xml, application/xml; q=0.9, */*; q=0.8`
Closes #5399
2015-04-26 22:39:23 -04:00
Ms2ger
9185c3de79
Remove as_mut_slice() calls.
2015-04-26 11:09:03 +02:00
Marcus Klaas
c1f25bbfe4
Replace usage of ResponseSenders by LoadConsumer
2015-04-19 13:26:56 +02:00
Josh Matthews
1644436557
Start switching net/ to use abstractions over channels to allow introducing non-channel communication in the future.
2015-04-16 11:46:39 -04:00
Corey Farwell
5eaa922045
Update WHATWG links to use HTTPS
...
Extracted this out of #5649
This commit was created with the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-13 21:34:27 -07:00
Josh Matthews
1757afef27
Remove int_uint from net.
2015-04-07 16:13:37 -04:00
Josh Matthews
23ae940abf
Enable MIME sniffing for HTTP loads.
2015-04-07 13:25:15 -04:00
Josh Matthews
a3201bc1ac
Enable optional mime sniffing, and integrate it with the file loader.
2015-04-06 20:19:30 -04:00
Josh Matthews
2d730f2ae9
Remove the sniffer task.
2015-04-06 19:31:53 -04:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Matt McCoy
818f1c5748
Closes #2587 Adding HTTP compression capability
2015-04-01 21:18:47 -04:00
Corey Farwell
2da17b3ce5
Cleanup 'view-source:' conditional
...
Fixes #5304
2015-03-21 22:04:58 -04:00
Ms2ger
ba87666cdb
Update some code that's feature-gated under core.
2015-03-21 18:44:39 +01:00
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
Chris Double
618142fac7
Implement displaying of text/plain documents
...
This is done by detecting the content type as text/plain
and following the requirements from:
https://html.spec.whatwg.org/multipage/browsers.html#read-text
2015-03-17 18:11:33 +13:00
Chris Double
82c52a7a1c
Implement view-source protocol. Fixes #4181 .
...
This follows the recommendation from issue #4181 . A handler
for 'view-source' delegates to the HTTP loader. In that
loader I check for view-source, adjust the URL to be the
URL to be viewed and modify the Content-Type header to be
text/plain.
This doesn't actually result in the source being
viewed as rendering text/plain is not yet implemented.
2015-03-17 11:06:44 +13:00
Manish Goregaokar
9119bb2041
Add --no-ssl flag for bypassing SSL checking
2015-03-14 19:17:07 +05:30
Ms2ger
b25564440d
Fix warnings in net.
2015-02-13 11:24:21 +01:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
Josh Matthews
fb217ab24b
Make XMLHttpRequest user-set headers be preserved across redirects.
2015-02-04 13:37:01 +00:00
Josh Matthews
94de93b3a3
Rename some variables for clarity.
2015-02-04 13:35:05 +00:00
Josh Matthews
824709f178
Unify the get/set scookie APIs to make them both deal with raw strings.
2015-02-04 13:35:05 +00:00
Josh Matthews
504094aa84
Set cookie headers on the request, rather than the load data, to ensure they are used after redirects occur.
2015-02-04 13:35:05 +00:00
Josh Matthews
14df9f8a70
Differentiate between HTTP and non-HTTP APIs for cookie operations. Fix some incorrect cookie removal operation logic. Order the returned cookies according to the spec. Make cookie unit tests pass.
2015-02-04 13:35:05 +00:00
Josh Matthews
24c8896f88
Improve redirect behaviour to clear headers and reevaluate sent cookies. Implement storage-related cookie behaviour such as domain and path matching that cookie-rs doesn't require. Remove stored cookies when an empty value is stored. Document cookie code.
2015-02-04 13:35:05 +00:00
Shamir Khodzha
3239aeacdc
cookies and cookies storage implementation
2015-02-04 13:34:06 +00:00
Manish Goregaokar
090dd9369f
Only SSL CA certs
2015-01-31 16:10:17 +05:30
Manish Goregaokar
524331d232
Add xpcshell script and warning
2015-01-31 15:40:54 +05:30
Manish Goregaokar
dfd746b38d
Basic certificate verification ( fixes #4119 )
2015-01-31 15:40:42 +05:30
Ms2ger
505159a464
Import the util crate as util rather than servo_util.
...
This used to conflict with the util crate from the standard library, which
has long since been removed.
The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
808315926c
Pass a String to spawn_named.
...
IntoString has been removed from Rust, and named() will take a String, so
there is no good reason to do otherwise here.
2015-01-21 11:23:19 +01:00
Ms2ger
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Ms2ger
b16f9cea09
Qualify hyper enums.
2015-01-04 15:26:40 +01:00
Ms2ger
b51e83819d
Fix obsolete format traits.
...
They are to be removed from the language in the next rust upgrade.
2015-01-02 19:04:18 +01:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Sean McArthur
12727d4dd0
convert net crate to use hyper
2014-12-04 10:06:39 -08:00
Kshitij Parajuli
f5e9ae17cf
Shared Sniffer Task
...
- Added TargetedLoadResponse and ResponseSenders
- LoadData constructor contains the next consumer which means
SnifferManager doesn't need the next consumer to start
- New SnifferTask is created at new resource_task creation
- Update Unit Tests
2014-11-28 12:35:49 -05:00
Jesse Tuchsen
b664ee88e7
Fixes #3962
...
Bad HTTP responses now have a 0 status code instead of 200 OK.
2014-11-27 11:55:31 -08:00