# Chopper

[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-)

[![pub package](https://img.shields.io/pub/v/chopper.svg)](https://pub.dartlang.org/packages/chopper) [![Dart CI](https://github.com/lejard-h/chopper/workflows/Dart%20CI/badge.svg)](https://github.com/lejard-h/chopper/actions?query=workflow%3A%22Dart+CI%22) [![codecov](https://codecov.io/gh/lejard-h/chopper/branch/master/graph/badge.svg)](https://codecov.io/gh/lejard-h/chopper)

[![](https://raw.githubusercontent.com/lejard-h/chopper/develop/flutter_favorite.png)](https://flutter.dev/docs/development/packages-and-plugins/favorites)

Chopper is an http client generator for Dart and Flutter using source\_gen and inspired by Retrofit.

[Documentation](https://hadrien-lejard.gitbook.io/chopper)

## Installation

Please refer to the installation guide at [pub.dev](https://pub.dev/packages/chopper/install) or in the [Getting started](https://hadrien-lejard.gitbook.io/chopper/getting-started) document.

* [Requests](https://hadrien-lejard.gitbook.io/chopper/requests)
* [Converters](https://hadrien-lejard.gitbook.io/chopper/converters/converters)
* [Interceptors](https://hadrien-lejard.gitbook.io/chopper/interceptors)

## Examples

* [json serializable Converter](https://github.com/lejard-h/chopper/blob/master/example/bin/main_json_serializable.dart)
* [built value Converter](https://github.com/lejard-h/chopper/blob/master/example/bin/main_built_value.dart)

## [Issue Tracker](https://github.com/lejard-h/chopper/issues)

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

| <p><a href="https://github.com/lejard-h"><img src="https://avatars.githubusercontent.com/u/7336262?v=4&#x26;s=100" alt=""><br>Hadrien Lejard</a><br><a href="https://github.com/lejard-h/chopper/commits?author=lejard-h">💻</a> <a href="https://github.com/lejard-h/chopper/pulls?q=is%3Apr+reviewed-by%3Alejard-h">👀</a> <a href="https://github.com/lejard-h/chopper/commits?author=lejard-h">⚠️</a> <a href="https://github.com/lejard-h/chopper/commits?author=lejard-h">📖</a></p> | <p><a href="https://github.com/stewemetal"><img src="https://avatars.githubusercontent.com/u/5860632?v=4&#x26;s=100" alt=""><br>István Juhos</a><br><a href="https://github.com/lejard-h/chopper/commits?author=stewemetal">💻</a> <a href="https://github.com/lejard-h/chopper/pulls?q=is%3Apr+reviewed-by%3Astewemetal">👀</a> <a href="https://github.com/lejard-h/chopper/commits?author=stewemetal">⚠️</a> <a href="https://github.com/lejard-h/chopper/commits?author=stewemetal">📖</a></p> | <p><a href="https://github.com/techouse"><img src="https://avatars.githubusercontent.com/u/1174328?v=4" alt=""><br>Klemen Tusar</a><br><a href="https://github.com/lejard-h/chopper/commits?author=techouse">💻</a> <a href="https://github.com/lejard-h/chopper/pulls?q=is%3Apr+reviewed-by%3Atechouse">👀</a> <a href="https://github.com/lejard-h/chopper/commits?author=techouse">⚠️</a> <a href="https://github.com/lejard-h/chopper/commits?author=techouse">📖</a></p> | <p><a href="https://www.upwork.com/freelancers/~01192eefd8a1c267f7"><img src="https://avatars.githubusercontent.com/u/231950?v=4&#x26;s=100" alt=""><br>Ivan Terekhin</a><br><a href="https://github.com/lejard-h/chopper/commits?author=JEuler">💻</a> <a href="https://github.com/lejard-h/chopper/pulls?q=is%3Apr+reviewed-by%3AJEuler">👀</a> <a href="https://github.com/lejard-h/chopper/commits?author=JEuler">⚠️</a> <a href="https://github.com/lejard-h/chopper/commits?author=JEuler">📖</a></p> | <p><a href="https://github.com/Guldem"><img src="https://avatars.githubusercontent.com/u/11982796?v=4&#x26;s=100" alt=""><br>Job Guldemeester</a><br><a href="https://github.com/lejard-h/chopper/commits?author=Guldem">💻</a> <a href="https://github.com/lejard-h/chopper/pulls?q=is%3Apr+reviewed-by%3AGuldem">👀</a> <a href="https://github.com/lejard-h/chopper/commits?author=Guldem">⚠️</a> <a href="https://github.com/lejard-h/chopper/commits?author=Guldem">📖</a></p> | <p><a href="http://ysampir@gmail.com"><img src="https://avatars.githubusercontent.com/u/3999503?v=4&#x26;s=100" alt=""><br>Eugeny Sampir</a><br><a href="https://github.com/lejard-h/chopper/commits?author=fryette">💻</a></p> | <p><a href="https://github.com/Vovanella95"><img src="https://avatars.githubusercontent.com/u/11267533?v=4&#x26;s=100" alt=""><br>Uladzimir Paliukhovich</a><br><a href="https://github.com/lejard-h/chopper/commits?author=Vovanella95">💻</a></p> |
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hadrien-lejard.gitbook.io/chopper/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
