This commit is contained in:
Martin Algesten
2018-06-10 21:21:07 +02:00
parent 4d80a9ba3c
commit 7d366c1055
2 changed files with 14 additions and 2 deletions

View File

@@ -2,6 +2,20 @@
> Minimal request library in rust. > Minimal request library in rust.
# UNDER CONSTRUCTION
- [x] Somewhat finished API
- [x] TLS
- [x] Header handling
- [x] Transfer-Encoding: chunked
- [x] Ergonomic JSON handling
- [ ] Auth headers
- [ ] Test harness for end-to-end tests
- [ ] Cookie jar in agent
- [ ] Forms with application/x-www-form-urlencoded
- [ ] multipart/form-data
- [ ] Connection reuse/keep-alive with pool
## Usage ## Usage
```rust ```rust

View File

@@ -12,8 +12,6 @@ use error::Error;
const DEFAULT_CONTENT_TYPE: &'static str = "text/plain"; const DEFAULT_CONTENT_TYPE: &'static str = "text/plain";
const DEFAULT_CHARACTER_SET: &'static str = "utf-8"; const DEFAULT_CHARACTER_SET: &'static str = "utf-8";
// buffered
// "text/", "/json", or "x-www-form-urlencoded"
pub struct Response { pub struct Response {
status_line: AsciiString, status_line: AsciiString,
index: (usize, usize), // index into status_line where we split: HTTP/1.1 200 OK index: (usize, usize), // index into status_line where we split: HTTP/1.1 200 OK