Commit Graph

29 Commits

Author SHA1 Message Date
Jacob Hoffman-Andrews
e36c1c2aa1 Switch to Result-based API. (#132)
Gets rid of synthetic_error, and makes the various send_* methods return `Result<Response, Error>`.
Introduces a new error type "HTTP", which represents an error due to status codes 4xx or 5xx.
The HTTP error type contains a boxed Response, so users can read the actual response if they want.
Adds an `error_for_status` setting to disable the functionality of treating 4xx and 5xx as errors.
Adds .unwrap() to a lot of tests.

Fixes #128.
2020-10-17 00:40:48 -07:00
Jacob Hoffman-Andrews
dafdf6a718 Tweak README. (#92)
The layout of crates.io means that code blocks overflow after 60
characters, so wrap before 60 to avoid needing a scrollbar.

Remove the warning about the Agent code. I think after our recent
testing, I believe it's good enough that it doesn't need a separate
warning.

Remove the old-style macro-use directive and the extern crate directive.
2020-06-26 19:09:24 +02:00
Jacob Hoffman-Andrews
fdc1f37662 Update documentation. (#73)
* Update documentation.

Synchronize goals section between README and rustdoc, and add two goals
(blocking API; no unsafe) that were mentioned elsewhere in the README.

Add error handling to examples for the module and for the Response
object.

And a section on synthetic errors to the top-level module documentation.

* Add back missing close brace.

* Add main function that returns Result.

* Add links to send_bytes and send_form.

* Document chunked encoding for send.

* Use a larger vec of bytes for send.
2020-06-21 09:55:50 +02:00
Tshepang Lekhonkhobe
d6b712f56f Update README.md
typo
2020-06-19 11:07:09 +02:00
Martin Algesten
89593d28b3 comment about native-tls 2020-06-15 09:37:10 +02:00
Martin Algesten
bbfd125025 1.0.0 2020-05-06 13:57:01 +02:00
Martin Algesten
662d001c79 update readme about ureqs future 2020-02-06 08:18:45 +01:00
Michael Aquilina
5365e6eeaa Add README badges for crates.io and documentation (#36) 2020-01-26 23:17:05 +01:00
Martin Algesten
9afbb834af Correctness doc comment 2019-10-20 19:32:18 +02:00
Martin Algesten
3642e27a26 CI badge 2019-10-20 19:31:48 +02:00
Martin Algesten
ee40b2cff0 Clarify license. Close #19 2019-10-20 10:26:05 +02:00
Martin Algesten
707d194b74 rustls instead of native-tls 2018-12-19 10:30:43 +01:00
Martin Algesten
792e2089eb Update README.md 2018-09-01 13:55:10 +02:00
Martin Algesten
4dc47958c6 doc 2018-07-01 00:23:26 +02:00
Martin Algesten
cd4a1722fa reduce dependency tree by features 2018-06-22 15:02:13 +02:00
Martin Algesten
72bcbe45db doc fixes 2018-06-22 10:49:03 +02:00
Martin Algesten
94bdfa100b cargo metadata 2018-06-22 10:23:07 +02:00
Martin Algesten
9514bd2743 query string test 2018-06-17 00:25:40 +02:00
Martin Algesten
6b63aab605 tests 2018-06-16 12:43:37 +02:00
Martin Algesten
773c82b4c6 send_payload -> send_body 2018-06-16 11:25:07 +02:00
Martin Algesten
ef6f8c6259 rustls -> native_tls 2018-06-14 14:17:39 +02:00
Martin Algesten
d4126027c8 cookie jar 2018-06-12 23:09:17 +02:00
Martin Algesten
89aafaa439 todo 2018-06-12 01:31:18 +02:00
Martin Algesten
8bc8559c22 repeated headers 2018-06-12 01:30:46 +02:00
Martin Algesten
5be3aef553 test all resp.into_xxx() 2018-06-12 01:30:46 +02:00
Martin Algesten
d548b3ef4f simple test harness 2018-06-12 01:30:46 +02:00
Martin Algesten
147a750aaf more todo 2018-06-10 23:39:01 +02:00
Martin Algesten
7d366c1055 todo 2018-06-10 21:21:07 +02:00
Martin Algesten
4d80a9ba3c readme 2018-06-10 21:09:43 +02:00