Description
Crest is an HTTP and REST client library for Crystal, the programming language. It is modeled on Ruby's RestClient gem and gives Crystal code a small, readable way to send requests. Requests can carry form data, headers, cookies, query parameters, multipart file uploads and JSON bodies. Crest can follow redirects, route requests through HTTP(S) proxies, and authenticate with basic or digest access authentication. It also handles streaming requests, international domain names and client TLS certificates. It is aimed at Crystal developers who need to call web APIs or download files without writing low-level socket code. The author says Crystal's standard library should eventually cover these needs, so Crest is a practical layer until then. You add it to a project through your shard.yml file.…
Highlights
- Simple API for GET, POST, PUT, PATCH, DELETE and OPTIONS requests
- Form data, JSON bodies and multipart file uploads
- Redirects, HTTP(S) proxies and cookie jars
- Basic and digest access authentication
- Streaming requests and international domain names
Ratings & Reviews
No ratings yet
Be the first to rate Crest.
People also visit
Crest FAQ
What is Crest?
A Crystal library for making HTTP and REST requests, modeled on Ruby's RestClient gem. Your Crystal code calls it to talk to web services.
How do I install Crest?
Add it to your application's shard.yml file as the README's installation section describes, then install the dependency with Crystal's shard tool.
Does Crest support JSON and file uploads?
Yes. It sends JSON requests with the appropriate headers, form data, and multipart file uploads.
Can Crest authenticate and use proxies?
Yes. It supports basic and digest access authentication, and each request can set its own HTTP(S) proxy.
Where is the source code?
On GitHub at mamantoha/crest.
What are the best Crest alternatives?
Popular alternatives to Crest include Restclient CPP, Httpful and Tiny.RestClient. See all Crest alternatives


