{"repo":"algesten/ureq","free":true,"listed":false,"github":"https://github.com/algesten/ureq","clone":"git clone https://github.com/algesten/ureq.git","description":"A simple, safe HTTP client","language":"Rust","stars":2172,"topics":["rust","rust-library","httpclient","http"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"[comment]: # (README.md is autogenerated from src/lib.rs by cargo readme README.md ) ureq A simple, safe HTTP client. Ureq's first priority is being easy for you to use. It's great for anyone who wants a low-overhead HTTP client that just gets the job done. Works very well with HTTP APIs. Its features include cookies, JSON, HTTP proxies, HTTPS, charset decoding, and is based on the API of the http crate. Ureq is in pure Rust for safety and ease of understanding. It forbids unsafe code. It uses blocking I/O instead of async I/O, because that keeps the API simple and keeps dependencies to a minimum. For TLS, ureq uses rustls or native-tls. See the [changelog] for details of recent releases. [changelog]: https://github.com/algesten/ureq/blob/main/CHANGELOG.md Usage In its simplest form, ureq looks like this: For more involved tasks, you'll want to create an [ Agent ]. An Agent holds a connection pool for reuse, and a cookie store if you use the cookies feature. An Agent can be cheaply cloned due to internal [ Arc ] and all clones of an Agent share state among each other. Creating an Agent also allows setting options like the TLS configuration. JSON Ureq supports sending and receiving json, if you enable the json feature: Error handling ureq returns errors via Result . That includes I/O errors, protocol errors. By default, also HTTP status code errors (when the server responded 4xx or 5xx) results in [ Error ]. This behavior can be turned off via [ http status as error() ] Featur","default_branch":null,"files":null,"tree":[],"storefront":"/r/algesten","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/algesten/ureq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}