todo
This commit is contained in:
14
README.md
14
README.md
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user