commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
d8c55d16c815700cbf9d1f97f2593a9b3142cfe3
Alex Crichton
2015-02-26T07:07:53
Migrate to using std::{io, path}
diff --git a/Cargo.toml b/Cargo.toml index c813796..ae78778 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.17" +version = "0.2.0" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/src...
6
31
20
220d7c4b61c262ea38618ae5ff89ea91d02ca5b4
Alex Crichton
2015-02-25T22:42:55
Fix warnings and update to rust master
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index dfd001f..4a216b4 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.1.10" +version = "0.1.11" authors = ["Carl Lerche <me@carllerche.com"] links = "curl" build = "build.rs" @@ -9,7 +9,7 @@...
8
48
52
b7089a71fba5757e36f8cb1b3767183d4b79c20f
Alex Crichton
2015-02-20T18:24:39
Bump to 0.1.17
diff --git a/Cargo.toml b/Cargo.toml index aeca8f7..c813796 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.16" +version = "0.1.17" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/sr...
2
8
3
23d6e2dcfb5c04dd566a96b0c1b78117da5f3a9f
Alex Crichton
2015-02-20T16:14:12
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index e1ad31b..aeca8f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.15" +version = "0.1.16" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/cu...
5
229
230
b5e91f24282050ae73e3c1c06b7a7afa2e7cb1bc
Alex Crichton
2015-02-14T17:18:56
Bump versions
diff --git a/Cargo.toml b/Cargo.toml index 6b94dfb..e1ad31b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.14" +version = "0.1.15" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/cu...
2
2
2
7fcfc0a9b036a7da4745f2d704611abddcd25ecb
Robin Gloster
2015-02-14T17:05:38
bump openssl
diff --git a/Cargo.toml b/Cargo.toml index f9671e4..6b94dfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,18 +20,18 @@ log = "0.2" # Unix platforms use OpenSSL for now to provide SSL functionality [target.i686-apple-darwin.dependencies] -openssl-sys = "0.3.0" +openssl-sys = "0.4.0" [target.x86_64-apple-darwin.de...
2
16
16
9181ea8f4ea2c7eb60224b5ebf464751165e2881
Alex Crichton
2015-02-05T17:07:53
Bump to 0.1.14
diff --git a/Cargo.toml b/Cargo.toml index 50487cb..f9671e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.13" +version = "0.1.14" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/sr...
2
1
2
59c2d12fdb2ce98a11b0039aa255f20d3c3608f1
Alex Crichton
2015-02-03T17:15:34
Bump version dep on openssl-sys
diff --git a/Cargo.toml b/Cargo.toml index 8b64461..50487cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.12" +version = "0.1.13" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" @@ -20,18 +20,1...
2
18
18
6ea699e8ac6ce4b539815d5b3af392e43c764e83
Alex Crichton
2015-01-29T17:29:53
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index 6f4ea6d..8b64461 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.11" +version = "0.1.12" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" @@ -9,13 +9,14 ...
14
39
35
77b39d49577c1c721e445ced2962e2815b24482f
Alex Crichton
2015-01-23T16:33:51
Bump curl-sys to 0.1.5
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index febe146..27df9a2 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.1.4" +version = "0.1.5" authors = ["Carl Lerche <me@carllerche.com"] links = "curl" build = "build.rs" @@ -17,6 +17,7 @@...
2
3
2
442334520274934a97cad33b988662a8b36245a8
Alex Crichton
2015-01-17T23:15:52
Bump to 0.1.11
diff --git a/Cargo.toml b/Cargo.toml index 7e1d292..6f4ea6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.10" +version = "0.1.11" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" @@ -16,3 +16,21...
1
19
1
4a0b6199f41352c3caf45a210768b614ee53dd3b
Alex Crichton
2015-01-15T19:47:07
Bump to 0.1.4
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index f55067d..febe146 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.1.3" +version = "0.1.4" authors = ["Carl Lerche <me@carllerche.com"] links = "curl" build = "build.rs"
1
1
1
85bf30dac026a5b87941f68e616f4798beebd9ad
Alex Crichton
2015-01-12T16:44:22
Delegate Show to String for now (for unwrap())
diff --git a/src/ffi/err.rs b/src/ffi/err.rs index 1c90470..df12d91 100644 --- a/src/ffi/err.rs +++ b/src/ffi/err.rs @@ -98,7 +98,7 @@ pub use curl_ffi::CURLcode::CURLE_CHUNK_FAILED as CHUNK_FAILED; pub use curl_ffi::CURLcode::CURLE_NO_CONNECTION_AVAILABLE as NO_CONNECTION_AVAILABLE; pub use curl_ffi::CURLcode::CURLE...
1
7
1
910464f6a78aae0648350d436c66f29457fc5383
Alex Crichton
2015-01-12T16:41:58
Bump to 0.1.10
diff --git a/Cargo.toml b/Cargo.toml index 603e456..7e1d292 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.9" +version = "0.1.10" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/src...
11
61
55
88ce0dcdc0d7948ec04980ea07021d96806ad955
Robin Gloster
2015-01-11T11:56:51
Update for fmt changes and derefs
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index a6837e0..98e8e35 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -89,7 +89,7 @@ pub const CURL_VERSION_NTLM_WB: c_int = (1 << 15); pub const CURL_VERSION_HTTP2: c_int = (1 << 16); #[repr(C)] -#[derive(Copy)] +#[derive(Copy, Show)] pub enum CURL...
6
9
9
c8cf11722cb14caf644a828b0b7107482a8f9eb7
Alex Crichton
2015-01-08T19:47:53
Bump to 0.1.9
diff --git a/Cargo.toml b/Cargo.toml index 2dd15c4..603e456 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.8" +version = "0.1.9" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/curl...
3
4
3
3365868d64bc68e6bf9b75a8d257567986460e14
Robin Gloster
2015-01-07T20:34:17
(Hopefully) fixes changes in FFI Please be careful as the proxy test is failing and I have no idea if that is caused by these changes. At least it should be a starting point to continue on from.
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index 2d5c2f2..8796a04 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -1,8 +1,7 @@ #![allow(dead_code)] use std::sync::{Once, ONCE_INIT}; -use std::c_vec::CVec; -use std::{io,mem}; +use std::{io, mem, raw}; use std::collections::HashMap; use libc::{c_int,c_lon...
5
28
27
9ffceb80e1c5cbb0bc95d56ba4bcce585f4ceaeb
Alex Crichton
2015-01-06T15:51:57
Bump to 0.1.8
diff --git a/Cargo.toml b/Cargo.toml index 7f58daf..2dd15c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.7" +version = "0.1.8" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/src/...
5
26
22
f410e611a1485919633e418195fd0726f121c99e
Alex Crichton
2015-01-05T16:22:28
Bump version number
diff --git a/Cargo.toml b/Cargo.toml index f1f5c29..7f58daf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.6" +version = "0.1.7" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust"
1
1
1
80c6f1b05607e7899da0bd2d946187a0ab4f515f
gifnksm
2015-01-05T10:35:59
Update to rust master Support new Entry API
diff --git a/src/http/handle.rs b/src/http/handle.rs index ba57d3a..6f24fb9 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -327,11 +327,11 @@ impl<'a, 'b> Request<'a, 'b> { } fn append_header(map: &mut HashMap<String, Vec<String>>, key: &str, val: &str) { - match map.entry(key.to_string()) { + ma...
1
2
2
343eb8c3729163e229a7e0178f2c4b862ab22ba1
Alex Crichton
2015-01-05T05:10:20
Bump version number
diff --git a/Cargo.toml b/Cargo.toml index 041d47a..f1f5c29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.5" +version = "0.1.6" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust"
1
1
1
69841e1d508a800b52affaa2b7dc38984d36404f
Akos Kiss
2015-01-05T00:35:45
Going with change in `Iterator`s.
diff --git a/src/ffi/version.rs b/src/ffi/version.rs index 16d7595..0538561 100644 --- a/src/ffi/version.rs +++ b/src/ffi/version.rs @@ -153,7 +153,8 @@ pub struct Protocols<'a> { curr: *const *const c_char } -impl<'a> Iterator<&'a str> for Protocols<'a> { +impl<'a> Iterator for Protocols<'a> { + type Item =...
3
4
2
d202319fc8fb6244ac146a3747e8071133cb5c6b
Alex Crichton
2015-01-03T22:48:59
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index a308b4b..041d47a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.4" +version = "0.1.5" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/curl...
10
23
19
a8ba9f161cc550cc0fb968f352fee80dc8ecb977
Akos Kiss
2015-01-03T12:04:38
Make `curl-sys` depend on `openssl-sys` for `aarch64-unknown-linux-gnu` triple as well.
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 0594b3f..a16c176 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -29,6 +29,8 @@ openssl-sys = "0.2.0" openssl-sys = "0.2.0" [target.arm-unknown-linux-gnueabihf.dependencies] openssl-sys = "0.2.0" +[target.aarch64-unknown-linux-gnu.dependencie...
1
2
0
6f4d66ed0bc5e71a0ea86a37f038f7c9f73dc3ae
Alex Crichton
2014-12-29T16:23:28
Bump version number
diff --git a/Cargo.toml b/Cargo.toml index 7dc1145..a308b4b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.3" +version = "0.1.4" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust"
1
1
1
71f1c6784fa6f1c2fa505fe77afffb6adc43c0df
Akos Kiss
2014-12-28T21:00:26
Keep up with the std::ascii reform.
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index 5340871..392cf66 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -150,7 +150,7 @@ impl ResponseBuilder { fn add_header(&mut self, name: &str, val: &str) { // TODO: Reduce allocations use std::ascii::OwnedAsciiExt; - let name = name...
1
1
1
4517ee606c65bbe03e4ad4f661725eb80e667a69
Alex Crichton
2014-12-23T16:25:38
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index 9a38c84..7dc1145 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.2" +version = "0.1.3" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/src/...
5
15
22
a4576ddb6eeeb4004d26052062cf40fe234644a6
Akos Kiss
2014-12-21T21:57:27
Make sure that the argument of str::from_c_str is always of the right type.
diff --git a/src/ffi/err.rs b/src/ffi/err.rs index c1cf2d0..6e5b08d 100644 --- a/src/ffi/err.rs +++ b/src/ffi/err.rs @@ -124,6 +124,6 @@ impl fmt::Show for ErrCode { impl error::Error for ErrCode { fn description(&self) -> &str { let code = self.code(); - unsafe { str::from_c_str(ffi::curl_easy_st...
1
1
1
eaf4853148ee15be26bb3ef67c6bdb3a608bab32
Alex Crichton
2014-12-19T16:23:05
Bump version numbers
diff --git a/Cargo.toml b/Cargo.toml index bb4e2cd..9a38c84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.1" +version = "0.1.2" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" diff --git a/curl...
2
2
2
c28bd9399f8d488619c382c79ccf0f1536ce182b
Alex Crichton
2014-12-19T16:22:27
Update to rust master
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index d84069c..5c097ed 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -212,254 +212,254 @@ pub enum CURLcode { CURLE_LAST /* never use! */ } -macro_rules! DEFOPT( +macro_rules! DEFOPT { ($name:ident, $ty:ident, $num:expr) => ( #[allow(dead_code...
4
239
239
ae365ab5c4300eadce0fb9f11eed97af14aa6c22
Alex Crichton
2014-12-16T20:00:12
Move dependency on logging to a dev-dep
diff --git a/Cargo.toml b/Cargo.toml index aecb12c..bb4e2cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.1.0" +version = "0.1.1" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust" @@ -13,3 +13,6 @@...
4
5
6
2d435e5f613b703cd3ee0e0c6fa925e46ea8b9df
Alex Crichton
2014-12-16T19:52:44
Update to rust master, bump version
diff --git a/Cargo.toml b/Cargo.toml index ba6e748..aecb12c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,10 +3,13 @@ name = "curl" version = "0.1.0" authors = ["Carl Lerche <me@carllerche.com>"] +license = "MIT" +repository = "https://github.com/carllerche/curl-rust" +description = "Rust bindings to libcurl for ma...
6
36
30
88123f90f672bf7d5307f198e8a7711fd8cd1693
Tim Holland
2014-12-13T01:27:37
Change usage of local_data_key! to thread_local!
diff --git a/src/test/server.rs b/src/test/server.rs index d520a8c..3f9557a 100644 --- a/src/test/server.rs +++ b/src/test/server.rs @@ -9,18 +9,17 @@ use std::time::Duration; use self::Op::{SendBytes, ReceiveBytes, Wait, Shutdown}; // Global handle to the running test HTTP server -local_data_key!(handle: Handle) +...
1
8
14
88c19bbb5580f70377ac186e0ec6c519cbf2fc15
Carl Lerche
2014-12-12T20:39:06
Fix dependencies, license, and authors
diff --git a/Cargo.toml b/Cargo.toml index 4b18098..7710cfe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,12 +2,13 @@ name = "curl" version = "0.1.0" -authors = ["Carl Lerche <me@carllerche.com>"] +authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] +license = "MIT" +description ...
1
7
6
d96a8ca36fc6b73b8044930e0c1c2f177c2d34b8
Benjamin Herr
2014-12-10T20:23:00
make some more exported types explicitly Copyable
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index fd8a22c..d84069c 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -13,6 +13,7 @@ pub type curl_slist = c_void; pub type CURLoption = c_int; #[repr(C)] +#[deriving(Copy)] pub enum CURLversion { CURL_VERSION_FIRST, CURL_VERSION_SECOND, diff --git a/...
2
2
1
631395b1114abcceef22069231ebdeebbda9cd0e
Benjamin Herr
2014-12-10T19:59:50
compile with opt-in Copy
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index bbfb12c..fd8a22c 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -88,6 +88,7 @@ pub const CURL_VERSION_NTLM_WB: c_int = (1 << 15); pub const CURL_VERSION_HTTP2: c_int = (1 << 16); #[repr(C)] +#[deriving(Copy)] pub enum CURLcode { CURLE_OK ...
3
3
0
2151259f0f7ea6903e96eb5defe6eb7e15ea6c88
Kyle Dewey
2014-12-04T23:07:03
Renamed function call as per a deprecation warning.
diff --git a/src/ffi/err.rs b/src/ffi/err.rs index fa8d54c..35304f6 100644 --- a/src/ffi/err.rs +++ b/src/ffi/err.rs @@ -123,6 +123,6 @@ impl fmt::Show for ErrCode { impl error::Error for ErrCode { fn description(&self) -> &str { let code = self.code(); - unsafe { str::raw::c_str_to_static_slice(f...
1
1
1
9d00649150d45717a163e5d4cb29ccaca6a6055f
Michał Krasnoborski
2014-12-03T21:42:51
Add openssl-sys dependency for arm-unknown-linux-gnueabihf.
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 20bb49a..d166ae9 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -24,6 +24,8 @@ git = "https://github.com/alexcrichton/libz-sys" git = "https://github.com/sfackler/rust-openssl" [target.x86_64-unknown-linux-gnu.dependencies.openssl-sys] g...
1
2
0
f11918069ae149bcada1f7590a81b324cfe6bc86
gifnksm
2014-11-28T14:55:46
update to latest rustc
diff --git a/src/ffi/err.rs b/src/ffi/err.rs index 80e232c..fa8d54c 100644 --- a/src/ffi/err.rs +++ b/src/ffi/err.rs @@ -5,97 +5,97 @@ use std::str; use curl_ffi as ffi; -pub use curl_ffi::CURLE_OK as OK; -pub use curl_ffi::CURLE_UNSUPPORTED_PROTOCOL as UNSUPPORTED_PROTOCOL; -pub use curl_ffi::CURLE_FAILED_INIT as...
2
92
92
c1b96e146f6752353a1e84cca932c628e6bf73af
Alex Crichton
2014-11-20T16:35:16
Update to rust master
diff --git a/src/ffi/err.rs b/src/ffi/err.rs index aca0cc3..80e232c 100644 --- a/src/ffi/err.rs +++ b/src/ffi/err.rs @@ -108,7 +108,7 @@ impl ErrCode { } impl fmt::Show for ErrCode { - fn fmt(&self, fmt: &mut fmt::Formatter) -> Result<(), fmt::FormatError> { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::R...
4
5
5
c5dc613286e33ea89c9b0acc22a53398a9aa6cd9
Alex Crichton
2014-11-19T16:41:07
Update to rust master
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 7d8d160..f652a73 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -33,7 +33,7 @@ fn main() { cflags.push_str(" -fPIC"); } - let src = os::getcwd(); + let src = os::getcwd().unwrap(); let dst = Path::new(os::getenv("OUT_DIR").un...
3
5
5
7f69a37ba93fb7665aa3bf494a31ba0cef3572b9
Kyle Dewey
2014-11-18T07:40:25
Added imports for alternatives to an enum, as per https://github.com/rust-lang/rust/pull/18973
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index a312e31..bbfb12c 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -68,7 +68,7 @@ pub const CURLOPTTYPE_OBJECTPOINT: c_int = 10_000; pub const CURLOPTTYPE_FUNCTIONPOINT: c_int = 20_000; pub const CURLOPTTYPE_OFF_T: c_int = 30_000; -pub const CURL_VE...
6
14
4
51a6fbd03a7f0a385a39175d0d1ec8d94e7b9986
Alex Crichton
2014-11-17T22:52:22
Fix SSL configuration on linux
diff --git a/Cargo.toml b/Cargo.toml index 60c20e3..ba6e748 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,4 @@ git = "https://github.com/servo/rust-url" [dependencies.curl-sys] path = "curl-sys" +version = "*" diff --git a/curl-sys/build.rs b/curl-sys/build.rs index b2edb63..7d8d160 100644 --- a/curl-sys/buil...
2
8
10
95b2452099f47845da43dd4ad5a371f207cff1f6
Alex Crichton
2014-11-17T16:17:11
Depend on sfackler/rust-openssl for openssl-sys
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index a1710fe..20bb49a 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -17,14 +17,14 @@ git = "https://github.com/alexcrichton/libz-sys" # Unix platforms use OpenSSL for now to provide SSL functionality [target.i686-apple-darwin.dependencies.opens...
1
6
6
f473d2604055ca3dd64143c69927294253ede07d
Carl Lerche
2014-11-15T00:02:50
Bump curl-sys version
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index fa0916d..a1710fe 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.0.1" +version = "0.1.0" authors = [] links = "curl" build = "build.rs"
1
1
1
2fa098c214b27f13e9d78d565b7d5113394eca34
Carl Lerche
2014-11-14T23:57:33
Bump version to 0.1.0
diff --git a/Cargo.toml b/Cargo.toml index 40ac5b0..60c20e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.0.1" +version = "0.1.0" authors = ["Carl Lerche <me@carllerche.com>"] [dependencies.url]
1
1
1
c8f68d56f7921fc2f3a3525767b7b6cdd79c9e0b
Carl Lerche
2014-11-11T19:02:55
Track Rust master
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index 9574d43..02a2b91 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use std::sync::{Once, ONCE_INIT}; use std::c_vec::CVec; use std::{io,mem}; @@ -161,7 +163,7 @@ impl ResponseBuilder { use std::ascii::OwnedAsciiExt...
5
9
5
43944611b7a84ee35bb57d13aa9e41d1626e70b3
Carl Lerche
2014-11-04T19:49:03
Fix tests
diff --git a/src/test/proxy.rs b/src/test/proxy.rs index 0ad89cb..b554fe2 100644 --- a/src/test/proxy.rs +++ b/src/test/proxy.rs @@ -4,7 +4,7 @@ use super::server; #[test] pub fn test_proxy() { let srv = server!( - recv!(b"POST http://www.google.com/ HTTP/1.1\r\n\ + recv!(b"POST http://www.google.c...
2
4
1
50c2439eb2c6a24c6ccd3dee1a5f86d38c1e82ca
Michael Hart
2014-11-04T17:09:48
Update hash_map namespace
diff --git a/src/http/handle.rs b/src/http/handle.rs index 628aaa3..c062511 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -1,5 +1,5 @@ use std::collections::HashMap; -use std::collections::hashmap::{Occupied, Vacant}; +use std::collections::hash_map::{Occupied, Vacant}; use std::path::Path; use url::Ur...
1
1
1
2d383d48b7f728f4bff732e2f017cacf0e914ba8
gifnksm
2014-11-03T11:03:15
Implements `std::error::Error` for `ErrCode`. This change supports "Error interoperation". See rust-lang/rfcs#201, rust-lang/rust#17747.
diff --git a/src/ffi/err.rs b/src/ffi/err.rs index 2a2caba..cef0913 100644 --- a/src/ffi/err.rs +++ b/src/ffi/err.rs @@ -1,5 +1,5 @@ use std::c_str::CString; -use std::fmt; +use std::{error, fmt, str}; use libc::{c_int,c_char}; #[allow(non_camel_case_types)] @@ -148,3 +148,9 @@ impl fmt::Show for ErrCode { ...
1
7
1
19fe936fa0005917165569a077e6606eada23ec0
Pierre Krieger
2014-11-02T11:49:12
Update for rustc
diff --git a/src/ffi/list.rs b/src/ffi/list.rs index 69a7048..1184007 100644 --- a/src/ffi/list.rs +++ b/src/ffi/list.rs @@ -30,14 +30,12 @@ impl List { self.len += 1; self.head = unsafe { curl_slist_append(self.head, val.as_ptr()) }; } -} -impl Collection for List { - fn len(&self) -> uint ...
4
5
7
21b031714a6fa610c08219c9f24d4d4a587ee94a
Jason Ozias
2014-11-01T03:39:03
updated to work with rust-dev changes
diff --git a/src/http/handle.rs b/src/http/handle.rs index 3c8fc3a..628aaa3 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -168,7 +168,7 @@ impl<'a, 'b> Request<'a, 'b> { } pub fn get_header<'a>(&'a self, name: &str) -> Option<&'a [String]> { - self.headers.find_equiv(&name).map(|a| a.as...
2
2
2
6f9b84e8fc093cfe5fd6b92201af08cd3f5cbda3
Matt McPherrin
2014-10-25T21:19:59
Make Request::new public
diff --git a/src/http/handle.rs b/src/http/handle.rs index 95c653d..3c8fc3a 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -107,7 +107,7 @@ enum BodyType { } impl<'a, 'b> Request<'a, 'b> { - fn new<'a, 'b>(handle: &'a mut Handle, method: Method) -> Request<'a, 'b> { + pub fn new<'a, 'b>(handle: &...
1
1
1
ed068c60a2548e611180484a71e803c5024404ea
Joshua DeSeno
2014-10-21T07:41:04
Replace OwnedStrAsciiExt usage
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index 1b77b6a..9574d43 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -158,7 +158,7 @@ impl ResponseBuilder { fn add_header(&mut self, name: &str, val: &str) { // TODO: Reduce allocations - use std::ascii::OwnedStrAsciiExt; + use std::a...
1
1
1
e9b3b1f4ed53a946aad938ceaa486421e17408a0
Konstantin Stepanov
2014-10-20T09:03:44
add cookie config methods
diff --git a/src/http/handle.rs b/src/http/handle.rs index 95c653d..5b7756a 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -55,6 +55,20 @@ impl Handle { self.easy.setopt(opt::CAINFO, path).unwrap(); self } + + pub fn cookie_jar(mut self, path: &Path) -> Handle { + self....
1
14
0
4fd00ca19445304237d5cb0b19b8aa48393fac4f
Tilde Engineering
2014-10-10T23:21:35
Track Rust master
diff --git a/src/ffi/info.rs b/src/ffi/info.rs index 52de9e5..a43dcdf 100644 --- a/src/ffi/info.rs +++ b/src/ffi/info.rs @@ -2,17 +2,17 @@ use libc::{c_int}; -static STRING: c_int = 0x100000; -static LONG: c_int = 0x200000; -static DOUBLE: c_int = 0x300000; -static SLIST: c_int = 0x400000; -static MASK:...
2
13
13
6d47499ae7a13a0ee1c31794b572d0cacdf0cd6a
Herman J. Radtke III
2014-10-01T05:40:37
Fix failing proxy test The server expected to receive a trailing forward-slash in the URL being posted from curl.
diff --git a/src/test/proxy.rs b/src/test/proxy.rs index b554fe2..0ad89cb 100644 --- a/src/test/proxy.rs +++ b/src/test/proxy.rs @@ -4,7 +4,7 @@ use super::server; #[test] pub fn test_proxy() { let srv = server!( - recv!(b"POST http://www.google.com HTTP/1.1\r\n\ + recv!(b"POST http://www.google.co...
1
1
1
86bfdbaab0423d7888f30294892a3b972f0828e7
Herman J. Radtke III
2014-10-01T05:33:33
Fix deprecated warnings
diff --git a/src/http/handle.rs b/src/http/handle.rs index 0622464..95c653d 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -1,4 +1,5 @@ use std::collections::HashMap; +use std::collections::hashmap::{Occupied, Vacant}; use std::path::Path; use url::Url; @@ -295,7 +296,14 @@ impl<'a, 'b> Request<'a, 'b...
3
14
6
86d302964ab88564a474235d52f2d14cb07e4366
Yehuda Katz
2014-09-27T00:21:14
Add verbose flag
diff --git a/src/http/handle.rs b/src/http/handle.rs index 914fe1b..0622464 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -32,6 +32,11 @@ impl Handle { self } + pub fn verbose(mut self) -> Handle { + self.easy.setopt(opt::VERBOSE, 1u).unwrap(); + self + } + pub fn ...
1
5
0
d90051add52ad64f96a38d904490a9ec94bbc00e
Carl Lerche
2014-09-22T20:32:31
Allow configuring CAINFO
diff --git a/src/http/handle.rs b/src/http/handle.rs index b55612d..914fe1b 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -45,6 +45,11 @@ impl Handle { self } + pub fn ssl_ca_info(mut self, path: &Path) -> Handle { + self.easy.setopt(opt::CAINFO, path).unwrap(); + self + ...
1
5
0
8134c43489d348f61e8162746908e487de43dca9
Carl Lerche
2014-09-22T19:56:46
Track Rust master
diff --git a/src/ffi/list.rs b/src/ffi/list.rs index 4f61852..69a7048 100644 --- a/src/ffi/list.rs +++ b/src/ffi/list.rs @@ -21,7 +21,7 @@ impl List { pub fn new() -> List { List { len: 0, - head: ptr::mut_null() + head: ptr::null_mut() } }
1
1
1
85a0c09c8cca218935f8464f783459e515ae596a
Carl Lerche
2014-09-22T19:55:13
Allow configuring the path to the SSL CA certs
diff --git a/src/ffi/opt.rs b/src/ffi/opt.rs index c5ff557..a0a8b6a 100644 --- a/src/ffi/opt.rs +++ b/src/ffi/opt.rs @@ -1,3 +1,4 @@ +use std::path::Path; use libc::{c_void,c_int}; static LONG: c_int = 0; @@ -35,6 +36,12 @@ impl<'a> OptVal for &'a str { } } +impl<'a> OptVal for &'a Path { + fn w...
2
13
0
a98f429071e09d8c61b1b8b946f605ef5aba3ab9
Carl Lerche
2014-09-01T00:50:04
Improve body trait/lifetime API Now that rust-lang/rust#16453 has landed, the body API can be improved to not require hard casting to trait objects
diff --git a/src/http/body.rs b/src/http/body.rs index 359b70a..5e40487 100644 --- a/src/http/body.rs +++ b/src/http/body.rs @@ -2,7 +2,7 @@ use std::io::{BufReader,IoResult,Reader}; pub enum Body<'a> { FixedBody(BufReader<'a>, uint), - ChunkedBody(&'a mut Reader + Send) + ChunkedBody(&'a mut Reader+'a) ...
3
5
6
fbf7c0365d0198d002865128f0017b8ce51ae89c
Carl Lerche
2014-08-31T23:51:43
Update to Rust master
diff --git a/src/http/body.rs b/src/http/body.rs index 9956373..359b70a 100644 --- a/src/http/body.rs +++ b/src/http/body.rs @@ -2,7 +2,7 @@ use std::io::{BufReader,IoResult,Reader}; pub enum Body<'a> { FixedBody(BufReader<'a>, uint), - ChunkedBody(&'a mut Reader) + ChunkedBody(&'a mut Reader + Send) } ...
1
2
2
8e7d72af289bb5f2d08a6cdc53d42788494c4bcc
Carl Lerche
2014-08-28T20:56:00
Update to Rust master
diff --git a/src/http/handle.rs b/src/http/handle.rs index 15056b4..23a2896 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -312,6 +312,6 @@ mod tests { fn get_header() { let mut h = Handle::new(); let r = h.get("/foo").header("foo", "bar"); - assert_eq!(r.get_header("foo"), So...
1
1
1
fcc7a9df02479835900f79cd2ed7cb9a44291c0e
Carl Lerche
2014-07-18T23:05:55
Initial proxy support
diff --git a/src/http/handle.rs b/src/http/handle.rs index 8652c36..15056b4 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -31,6 +31,14 @@ impl Handle { self } + pub fn proxy<U: ToUrl>(mut self, proxy: U) -> Handle { + proxy.with_url_str(|s| { + self.easy.setopt(opt::PR...
3
37
0
593cf848685afbbf5078655964d94b2395d1f52b
Alex Crichton
2014-07-18T19:27:50
Pass through Content-Length if explicitly set If the content length isn't passed through to curl then the `Transfer-Encoding: chunked` header is unconditionally added which is not always desirable.
diff --git a/src/http/handle.rs b/src/http/handle.rs index d0db0f6..8652c36 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -69,13 +69,18 @@ pub struct Request<'a, 'b> { method: Method, headers: HashMap<String, Vec<String>>, body: Option<Body<'b>>, - body_type: bool, // whether or not the ...
2
54
21
68b1e30472a878a6b74803bc904c186bac1a4217
Alex Crichton
2014-07-18T19:27:38
Squash some warnings
diff --git a/src/test/keep_alive.rs b/src/test/keep_alive.rs index e69f019..4e15efa 100644 --- a/src/test/keep_alive.rs +++ b/src/test/keep_alive.rs @@ -1,4 +1,3 @@ -use std::str::from_utf8_lossy; use http::handle; use super::server; @@ -60,8 +59,10 @@ pub fn test_post_get_requests() { srv.assert(); ass...
2
6
5
d0005b91f4dd953b8e5641e70a85cc74560f4b05
Alex Crichton
2014-07-18T18:38:55
Add a `content_type` method
diff --git a/src/http/handle.rs b/src/http/handle.rs index 01ca64e..d0db0f6 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -108,6 +108,15 @@ impl<'a, 'b> Request<'a, 'b> { self } + pub fn content_type(mut self, ty: &str) -> Request<'a, 'b> { + if !self.content_type { + ...
2
35
0
7842090978c53308eec0cd4dde825217b82400ff
Carl Lerche
2014-07-18T00:17:30
Allow specifying the request with a URL
diff --git a/src/http/handle.rs b/src/http/handle.rs index 3047cc3..01ca64e 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -1,4 +1,5 @@ use std::collections::HashMap; +use url::Url; use ffi; use ffi::opt; @@ -30,24 +31,24 @@ impl Handle { self } - pub fn get<'a, 'b, S: Str>(&'a mut ...
2
41
15
339e6e4c86ce731d0a6d1601da30effbf5e783d1
Carl Lerche
2014-07-15T00:25:30
Support parallel tests
diff --git a/src/http/handle.rs b/src/http/handle.rs index 569f549..3047cc3 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -30,24 +30,24 @@ impl Handle { self } - pub fn get<'a, 'b>(&'a mut self, uri: &str) -> Request<'a, 'b> { - Request::new(self, Get).uri(uri) + pub fn get<'a...
8
83
50
e9e93be52b4118a9486bf1bb85a44efc9bc382f2
miie
2014-07-12T12:19:43
Provide Response#get_total_time()
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index ffc633e..9a91274 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -101,6 +101,10 @@ impl Easy { pub fn get_response_code(&self) -> Result<uint, err::ErrCode> { Ok(try!(self.get_info_long(info::RESPONSE_CODE)) as uint) } + + pub fn get_total_time(&s...
2
5
0
c9e5663ee8891bf0d192e881435d1eb7374bfd39
Tim Carey-Smith
2014-07-10T23:00:32
Add move_body to Response
diff --git a/src/http/response.rs b/src/http/response.rs index 2cbad00..8fa575c 100644 --- a/src/http/response.rs +++ b/src/http/response.rs @@ -36,6 +36,10 @@ impl Response { pub fn get_body<'a>(&'a self) -> &'a [u8] { self.body.as_slice() } + + pub fn move_body(self) -> Vec<u8> { + self.body + } } ...
1
4
0
cf37ce9a361d92f35c4104fd13c035af01ae36c5
Alex Crichton
2014-07-10T17:06:29
Store headers in a HashMap instead of ffi::List
diff --git a/src/ffi/list.rs b/src/ffi/list.rs index 4d1953c..575e905 100644 --- a/src/ffi/list.rs +++ b/src/ffi/list.rs @@ -1,16 +1,10 @@ #![allow(non_camel_case_types)] -use std::{ptr, raw, mem}; -use std::c_str::CString; - -use libc::{c_void, c_char}; +use std::ptr; +use libc::c_void; use super::opt::OptVal; -...
3
55
79
3324c20ee6e77230f2bc6820ab3278724e70ca8f
Alex Crichton
2014-07-10T16:30:54
Implement get_header() for Request
diff --git a/src/ffi/list.rs b/src/ffi/list.rs index 4e54a9d..4d1953c 100644 --- a/src/ffi/list.rs +++ b/src/ffi/list.rs @@ -1,32 +1,50 @@ -use std::{ptr}; -use libc::{c_void}; +#![allow(non_camel_case_types)] + +use std::{ptr, raw, mem}; +use std::c_str::CString; + +use libc::{c_void, c_char}; use super::opt::OptVal;...
2
88
14
278dfdb003b6caad2aa712d19a3444ddc357a475
Alex Crichton
2014-07-10T16:09:41
Implement following redirects
diff --git a/src/http/handle.rs b/src/http/handle.rs index 378fae8..f914dd3 100644 --- a/src/http/handle.rs +++ b/src/http/handle.rs @@ -70,6 +70,7 @@ pub struct Request<'a, 'b> { content_type: bool, // whether or not the content type was set expect_continue: bool, // whether to expect a 100 continue from the ser...
2
46
2
092a348cef59df987c87e66d82362374f2ea1d66
Alex Crichton
2014-07-07T13:29:54
crate_id => crate_name
diff --git a/src/lib.rs b/src/lib.rs index 4fd8f5a..1f71ee3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![crate_id = "curl"] +#![crate_name = "curl"] #![feature(macro_rules)] #![feature(phase)]
1
1
1
f56b876b3561ca23ef573822df1a72be59b3f620
Carl Lerche
2014-07-02T20:11:25
Move HTTP related code into http module
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index 58a9dc9..ffc633e 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -5,8 +5,8 @@ use std::collections::HashMap; use libc::{c_void,c_int,c_long,c_double,size_t}; use super::{consts,err,info,opt}; use super::err::ErrCode; -use super::super::body::Body; -use {head...
13
33
28
62bdd44897da453d8a2d44602764b6cafe927e24
Alex Crichton
2014-07-02T15:17:21
Add a Cargo.toml
diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..bf1d532 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,10 @@ +[package] + +name = "curl" +version = "0.0.1" +authors = ["Carl Lerche <me@carllerche.com>"] + +[[lib]] + +name = "curl" +path = "src/lib.rs"
1
10
0
379818d29c281200b3db96bbce997ee476d08894
Carl Lerche
2014-07-02T05:56:22
Better organize request builder
diff --git a/src/handle.rs b/src/handle.rs index ced29c8..e5a0d55 100644 --- a/src/handle.rs +++ b/src/handle.rs @@ -28,23 +28,23 @@ impl Handle { } pub fn get<'a, 'b>(&'a mut self, uri: &str) -> Request<'a, 'b> { - Request::new(self, Get, None).uri(uri) + Request::new(self, Get).uri(uri) } pub fn...
2
73
66
7a57459f818661bb2bdde6a0597718ad9af8eced
Carl Lerche
2014-07-02T05:12:09
Initial implementation of DELETE support
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index cdb7812..58a9dc9 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -69,6 +69,8 @@ impl Easy { None => 0 }; + debug!("setting read fn: {}", body_p != 0); + // Set callback options curl_easy_setopt(self.curl, opt::READFUNCTION, ...
4
72
0
5448fbac1952d2fe2d1927eac143223d7b3b3dee
Carl Lerche
2014-07-02T03:30:31
Support PUT requests
diff --git a/src/handle.rs b/src/handle.rs index 8e34bd2..2050982 100644 --- a/src/handle.rs +++ b/src/handle.rs @@ -38,6 +38,10 @@ impl Handle { pub fn post<'a, 'b, B: ToBody<'b>>(&'a mut self, uri: &str, body: B) -> Request<'a, 'b> { Request::new(self, Post, Some(body.to_body())).uri(uri) } + + pub fn put...
7
50
6
816f3afbbe007ce13c769d7112e3e38b625cc703
Carl Lerche
2014-07-02T02:01:39
Provide transfer progress via callback Upload and download progress information can be tracked by providing a callback that will get invoked as progress happens.
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index d682a63..cdb7812 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -2,13 +2,14 @@ use std::sync::{Once, ONCE_INIT}; use std::c_vec::CVec; use std::{io,mem}; use std::collections::HashMap; -use libc::{c_void,c_long,size_t}; +use libc::{c_void,c_int,c_long,c_dou...
5
84
15
b9da87a3c16dfd3d18f24920010d1d2aae790c5b
Carl Lerche
2014-07-01T18:54:58
Track Rust master
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index aae4acf..d682a63 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -12,16 +12,16 @@ type CURL = c_void; #[link(name = "curl")] extern { - pub fn curl_easy_init() -> *CURL; - pub fn curl_easy_setopt(curl: *CURL, option: opt::Opt, ...) -> ErrCode; - pub fn c...
6
35
35
a0b81d20d0f4cb87b364d0079b59804bb66e7d58
Alex Crichton
2014-06-24T04:27:56
Run the curl cleanup function at process exit This helps to cut down on the leaks when the process exits.
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index 3a03a11..aae4acf 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -1,3 +1,4 @@ +use std::sync::{Once, ONCE_INIT}; use std::c_vec::CVec; use std::{io,mem}; use std::collections::HashMap; @@ -16,6 +17,7 @@ extern { pub fn curl_easy_perform(curl: *CURL) -> Er...
1
8
0
ce963a99940e7f25402ba82da4026531779b2a6e
Alex Crichton
2014-06-24T02:38:54
test: Use new byte literals instead of macros
diff --git a/src/header.rs b/src/header.rs index 3c61cbe..98838e2 100644 --- a/src/header.rs +++ b/src/header.rs @@ -215,7 +215,7 @@ mod test { #[test] pub fn test_parsing_invalid_bytes() { - let res = parse(bytes!("fo", 156, "o: zomg")); + let res = parse(b"fo\x9co: zomg"); assert!(res.is_none()); ...
6
82
82
700cd94dad79b0d64c2be3d60f88222e7b7f0ccd
Carl Lerche
2014-06-20T16:30:14
Finish cleaning up warnings
diff --git a/src/ffi/version.rs b/src/ffi/version.rs index ad1b7b7..1384dc9 100644 --- a/src/ffi/version.rs +++ b/src/ffi/version.rs @@ -67,7 +67,7 @@ pub type Version = curl_version_info_data; impl curl_version_info_data { pub fn version_str<'a>(&'a self) -> &'a str { - as_str(self.version) + as_str(self.v...
3
49
10
844d963a5807b6436dfa83cb8dd73ca2c4b48522
Carl Lerche
2014-06-20T05:56:59
Expand curl version info support
diff --git a/src/ffi/version.rs b/src/ffi/version.rs index 28178ba..ad1b7b7 100644 --- a/src/ffi/version.rs +++ b/src/ffi/version.rs @@ -1,49 +1,216 @@ #![allow(non_camel_case_types)] use std::c_str::CString; -use std::mem; +use std::{fmt,mem,ptr}; use libc::{c_char,c_int,c_uint,c_long}; #[repr(C)] enum CURLve...
2
198
33
860a50ff71d66e4758efd42064750df254f65a04
Carl Lerche
2014-06-20T01:37:52
Cleanup warnings
diff --git a/src/body.rs b/src/body.rs index 435fab1..4973747 100644 --- a/src/body.rs +++ b/src/body.rs @@ -8,7 +8,7 @@ pub enum Body<'a> { impl<'a> Body<'a> { pub fn get_size(&self) -> Option<uint> { match self { - &FixedBody(b, len) => Some(len), + &FixedBody(_, len) => Some(len), _ => None...
8
34
44
d95e3eb108d3a0e645422d6b3c064ac68e0b1551
Carl Lerche
2014-06-20T01:06:40
Lower case header names
diff --git a/src/ffi/easy.rs b/src/ffi/easy.rs index 2895e9a..58b019d 100644 --- a/src/ffi/easy.rs +++ b/src/ffi/easy.rs @@ -122,7 +122,9 @@ impl ResponseBuilder { } fn add_header(&mut self, name: &str, val: &str) { - let name = name.to_string(); + // TODO: Reduce allocations + use std::ascii::OwnedStr...
3
6
4
0d666ef386445b7aa5d959ae74d7444601165945
Carl Lerche
2014-06-19T22:34:08
Add support for HEAD requests
diff --git a/src/handle.rs b/src/handle.rs index 1f993cd..10900e4 100644 --- a/src/handle.rs +++ b/src/handle.rs @@ -18,9 +18,9 @@ pub struct Handle { impl Handle { pub fn new() -> Handle { - Handle { - easy: Easy::new() - }.timeout(DEFAULT_TIMEOUT_MS) + Handle { easy: Easy::new() } + .timeout(...
3
41
3
4fd4544172ddad27e8fdae2e50042b75160e37d1
Carl Lerche
2014-06-19T20:18:57
Test keep alive requests with various methods
diff --git a/src/ffi/opt.rs b/src/ffi/opt.rs index 8fefa83..e7bb459 100644 --- a/src/ffi/opt.rs +++ b/src/ffi/opt.rs @@ -195,8 +195,100 @@ DEFOPT!(CONNECT_ONLY, LONG, 141) DEFOPT!(CONV_FROM_NETWORK_FUNCTION, FUNCTIONPOINT, 142) DEFOPT!(CONV_TO_NETWORK_FUNCTION, FUNCTIONPOINT, 143) DEFOPT!(CO...
3
142
2
9f531f024731c5dd08f5809766abca4c3a50dbc0
Carl Lerche
2014-06-19T01:24:24
Cleanup tests
diff --git a/src/test/get.rs b/src/test/get.rs index e69de29..6acf959 100644 --- a/src/test/get.rs +++ b/src/test/get.rs @@ -0,0 +1,52 @@ +use {handle}; +use super::server; + +#[test] +pub fn test_simple_get() { + let srv = server!( + recv!( + "GET / HTTP/1.1\r\n\ + Host: localhost:8482\r\n\ + Acce...
4
88
115
dac1c2ba0eb6a5c74eb839ac4f20de2e1e4a1530
Carl Lerche
2014-06-19T00:58:15
HTTP POST with Reader as body
diff --git a/src/body.rs b/src/body.rs index 83ec6e7..435fab1 100644 --- a/src/body.rs +++ b/src/body.rs @@ -31,8 +31,21 @@ impl<'a> ToBody<'a> for &'a str { } } -impl <'a> ToBody<'a> for &'a [u8] { +impl<'a> ToBody<'a> for &'a [u8] { fn to_body(self) -> Body<'a> { FixedBody(BufReader::new(self), self.len...
7
108
5
0f2fac448747ed7739bc8ee035e36ce7864f185f
Carl Lerche
2014-06-10T06:08:01
Return builder from get(...) and post(...) fns
diff --git a/src/lib.rs b/src/lib.rs index 1b03a53..a6de6da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,14 +24,13 @@ pub fn request<'a>() -> Request<'a> { Request::new() } -pub fn get(uri: &str) -> Result<Response, ErrCode> { +pub fn get<'a>(uri: &str) -> Request<'a> { request() .method(Get) .uri...
2
4
6
f8565c092f6c8b5cb8d1441a6104c6805a229e54
Carl Lerche
2014-06-10T05:52:57
Expose response headers and cleanup some warnings
diff --git a/src/handle.rs b/src/handle.rs index df86d57..2337270 100644 --- a/src/handle.rs +++ b/src/handle.rs @@ -1,10 +1,10 @@ -use libc::{c_long,size_t,c_void}; +use libc::{c_long,size_t}; use std::c_vec::CVec; use std::collections::HashMap; use std::{io,mem}; use super::body::Body; use super::ffi::{consts,ea...
6
18
15
fee7501556dfee20637c7c3b736ff6939c7e22c8
Carl Lerche
2014-06-10T05:35:28
First full-stack test
diff --git a/src/response.rs b/src/response.rs index 4898f82..3b0ed96 100644 --- a/src/response.rs +++ b/src/response.rs @@ -23,7 +23,10 @@ impl Response { } pub fn get_header<'a>(&'a self, name: &str) -> &'a [String] { - self.hdrs.find_equiv(&name).map(|v| v.as_slice()).unwrap_or(&[]) + self.hdrs + ...
3
41
21
deacff81c36e1ff2489b01dec3b9fc9fd7cfa6bd
Alex Crichton
2014-06-10T01:03:06
Change to_c_repr() to with_c_repr() This prevents a use-after-free in curl when passing C strings to curl.
diff --git a/src/ffi/list.rs b/src/ffi/list.rs index bea56c7..d6165fb 100644 --- a/src/ffi/list.rs +++ b/src/ffi/list.rs @@ -24,8 +24,7 @@ impl List { } pub fn push_str(&mut self, val: &str) { - let c_val = val.to_c_str(); - self.push_bytes(c_val.as_bytes()); + self.push_bytes(val.as_bytes()); } ...
3
20
18
0853da7017fc82f51ca2e79090476878aececebb
Alex Crichton
2014-06-10T00:13:32
Update to master and implement get_header()
diff --git a/src/ffi/list.rs b/src/ffi/list.rs index b47c0de..bea56c7 100644 --- a/src/ffi/list.rs +++ b/src/ffi/list.rs @@ -34,7 +34,7 @@ impl List { } } -impl Container for List { +impl Collection for List { fn len(&self) -> uint { self.len } diff --git a/src/handle.rs b/src/handle.rs index 747c400.....
4
6
7
69205e15370a0eede9bf924bcc551cab78f12635
Alex Butler
2025-11-07T21:15:41
Update edition 2024 (#14)
diff --git a/Cargo.toml b/Cargo.toml index 8a4640a..7fd4110 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "linked_hash_set" version = "0.1.5" authors = ["Alex Butler <alexheretic@gmail.com>"] -edition = "2021" +edition = "2024" description = "HashSet with insertion ordering" repository = "https:/...
2
3
3