Fetchx - Simplified http requests in Dart

Overview

Fetchx

Fetchx is a simple, fast, and secure HTTP client for Dart. It leverages extensions to allow using url-like strings to make http requests.

Read in another language

Table of contents

Features

  • Get
  • Post
  • Put
  • Delete
  • Patch

Usage

To use this package add this to your pubspec.yaml

dependencies:
  fetchx: ^0.0.5

Then import the package

import 'package:fetchx/fetchx.dart';

Get

final response = await "https://jsonplaceholder.typicode.com/posts/1".get();

Post

final response = await "https://jsonplaceholder.typicode.com/posts".post({
  "title": "foo",
  "body": "bar",
  "userId": 1
});

Put

final response = await "https://jsonplaceholder.typicode.com/posts/1".put({
  "title": "foo",
  "body": "bar",
  "userId": 1
});

Delete

final response = await "https://jsonplaceholder.typicode.com/posts/1".delete();

Patch

final response = await "https://jsonplaceholder.typicode.com/posts/1".patch({
  "title": "foo"
});

Translations

This README is available in other languages:

Comments
  • Restyle Update the Documentations to Chinese Language

    Restyle Update the Documentations to Chinese Language

    A duplicate of #17 with additional commits that automatically address incorrect style, created by Restyled.

    :warning: Even though this PR is not a Fork, it contains outside contributions. Please review accordingly.

    Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it with only the style fixes.

    The following Restylers made fixes:

    To incorporate these changes, you can either:

    1. Merge this Pull Request instead of the original, or

    2. Ask your contributor to locally incorporate these commits and push them to the original Pull Request

      Expand for example instructions
      ```console
      git remote add upstream https://github.com/bryanbill/fetch.git
      git fetch upstream pull/<this PR number>/head
      git merge --ff-only FETCH_HEAD
      git push
      ```
      

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 1
  • Restyle Dev

    Restyle Dev

    Automated style fixes for #25, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Experimental features (#22)

    Experimental features (#22)

    • Refactor: Documentantion (#15)

    • fix:Unsupported Platform - Removes dart:mirrors which is unsupported by Flutter

    • doc:Api Documentation

    • doc:API Documentation

    • ft:Request - Gets original request

    • doc:Documentation - Documents Activator

    • ft:Model - Adds Request Model

    • refactor:Response, Request - Attaches Request model to Response

    • reafctor:Dependecy - Removes dartz

    • fix:Headers not mutable #12

    • fix:Headers not mutable #12 - Fixes instances of immutable headers

    • Restyle v0.0.5 (#14)

    • Restyled by jq

    • Restyled by prettier-markdown

    • Restyled by whitespace

    Co-authored-by: Restyled.io [email protected]

    • fix:Exception Handler #11 - Adds exception handler for json converter

    • ft:Exception Handler #11

    • refactor:Doc - Omits docs from VCS

    Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io [email protected]

    • Restyle Update the Documentations to Chinese Language (#18)

    • Create README_zh_CN.md

    Add Translated Chinese Language README for This Package

    • Update README_zh_CN.md

    • Update README_zh_CN.md

    • Update README.md

    • Update README_zh_CN.md

    • Restyled by prettier-markdown

    Co-authored-by: Lim Shi Song [email protected] Co-authored-by: Restyled.io [email protected]

    • Update the Documentations to Chinese Language (#17)

    • Create README_zh_CN.md

    Add Translated Chinese Language README for This Package

    • Update README_zh_CN.md

    • Update README_zh_CN.md

    • Update README.md

    • Update README_zh_CN.md

    Co-authored-by: Brian Omondi [email protected]

    • Ft experimental (#20)

    • fix: Unsupported Platform - Removes dart:mirrors which are unsupported by Flutter

    • doc:Api Documentation

    • doc:API Documentation

    • ft: Request - Gets the original request

    • doc:Documentation - Documents Activator

    • ft: Model - Adds Request Model

    • refactor: Response, Request - Attaches Request model to Response

    • refactor: Dependency - Removes dartz

    • fix: Headers not mutable #12

    • fix: Headers not mutable #12 - Fixes instances of immutable headers

    • Restyle v0.0.5 (#14)

    • Restyled by jq

    • Restyled by prettier-markdown

    • Restyled by whitespace

    Co-authored-by: Restyled.io [email protected]

    • fix: Exception Handler #11 - Adds exception handler for JSON converter

    • ft: Exception Handler #11

    • refactor: Doc - Omits docs from VCS

    • ft: Cache - Adds cache extension that caches get response

    • refactor: Network - While caching preferNetwork by default

    • ft: Cache - adds cache to get request

    • fix: Box Key - Fixes null URL while caching in a box

    • Restyle Ft experimental (#21)

    • Restyled by prettier-yaml

    • Restyled by whitespace

    Co-authored-by: Restyled.io [email protected]

    Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io [email protected]

    • Delete test.html

    • Create dart.yml

    • Restyled by prettier-markdown (#23)

    Co-authored-by: Restyled.io [email protected]

    Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io [email protected] Co-authored-by: Lim Shi Song [email protected]

    opened by bryanbill 0
  • Restyle Experimental features

    Restyle Experimental features

    Automated style fixes for #22, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle Ft experimental

    Restyle Ft experimental

    Automated style fixes for #20, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle Update the Documentations to Chinese Language

    Restyle Update the Documentations to Chinese Language

    A duplicate of #17 with additional commits that automatically address incorrect style, created by Restyled.

    :warning: Even though this PR is not a Fork, it contains outside contributions. Please review accordingly.

    Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it with only the style fixes.

    The following Restylers made fixes:

    To incorporate these changes, you can either:

    1. Merge this Pull Request instead of the original, or

    2. Ask your contributor to locally incorporate these commits and push them to the original Pull Request

      Expand for example instructions
      ```console
      git remote add upstream https://github.com/bryanbill/fetch.git
      git fetch upstream pull/<this PR number>/head
      git merge --ff-only FETCH_HEAD
      git push
      ```
      

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Refactor: Documentantion

    Refactor: Documentantion

    This Pull Request removes docs from VCS and also adds Exception Handling capability to the base branch. My understanding of removing the docs from VCS is that anybody can get it on their own local or on the pub.dev platform, so tracking it seems off.

    opened by bryanbill 0
  • Restyle v0.0.5

    Restyle v0.0.5

    Automated style fixes for #13, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle :memo:Documentation translation in Italian

    Restyle :memo:Documentation translation in Italian

    A duplicate of #9 with additional commits that automatically address incorrect style, created by Restyled.

    :warning: Even though this PR is not a Fork, it contains outside contributions. Please review accordingly.

    Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it with only the style fixes.

    The following Restylers made fixes:

    To incorporate these changes, you can either:

    1. Merge this Pull Request instead of the original, or

    2. Ask your contributor to locally incorporate these commits and push them to the original Pull Request

      Expand for example instructions
      ```console
      git remote add upstream https://github.com/bryanbill/fetch.git
      git fetch upstream pull/<this PR number>/head
      git merge --ff-only FETCH_HEAD
      git push
      ```
      

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    documentation 
    opened by restyled-io[bot] 0
  • Restyle .to<Type> and .toList<Type>

    Restyle .to and .toList

    Automated style fixes for #5, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Update the Documentations

    Update the Documentations

    The current documentation is shallow and only available in English. Expansion of the content and translation to several other languages will be convenient.

    documentation good first issue hacktoberfest 
    opened by bryanbill 0
Releases(0.0.4+alpha)
  • 0.0.4+alpha(Jun 4, 2022)

    What's Changed

    • refactor:API - Removes dart:mirrors api
    • doc:Documentation - Release documentation for v0.0.3 by @bryanbill in https://github.com/bryanbill/fetch/pull/4
    • .to and .toList by @bryanbill in https://github.com/bryanbill/fetch/pull/5

    Full Changelog: https://github.com/bryanbill/fetch/compare/0.0.3-lts...0.0.4

    What's Changed

    • added more example cases by @TrekHub in https://github.com/bryanbill/fetch/pull/2

    New Contributors

    • @TrekHub made their first contribution in https://github.com/bryanbill/fetch/pull/2

    Full Changelog: https://github.com/bryanbill/fetch/compare/0.0.2-Alpha...0.0.4+alpha

    Source code(tar.gz)
    Source code(zip)
  • 0.0.3-lts(May 22, 2022)

    What's Changed

    • added more example cases by @TrekHub in https://github.com/bryanbill/fetch/pull/2
    • v0.0.3+alpha by @bryanbill in https://github.com/bryanbill/fetch/pull/3

    New Contributors

    • @TrekHub made their first contribution in https://github.com/bryanbill/fetch/pull/2

    Full Changelog: https://github.com/bryanbill/fetch/compare/0.0.2-Alpha...0.0.3-lts

    Source code(tar.gz)
    Source code(zip)
  • 0.0.2-Alpha(May 21, 2022)

    What's Changed

    • Documentation by @bryanbill in https://github.com/bryanbill/fetch/pull/1

    New Contributors

    • @bryanbill made their first contribution in https://github.com/bryanbill/fetch/pull/1

    Full Changelog: https://github.com/bryanbill/fetch/compare/0.0.1-Nocturna...0.0.2-Alpha

    Source code(tar.gz)
    Source code(zip)
  • 0.0.1-Nocturna(May 21, 2022)

Owner
Brian Omondi
Software Developer Talkcoms - working on Fetchx.
Brian Omondi
Your AFK Arena redemption codes simplified

AFK Redeem Your AFK Arena redemption codes simplified more screenshots at afkredeem.com Why Share the Sources The rationale behind sharing the sources

null 27 Jan 8, 2023
App for sending ssh requests. Wake on Lan through ssh

wakeonwears WakeOnLan through ssh Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Sergey Latu 1 Oct 15, 2021
Dart HTTP server framework for building REST APIs. Includes PostgreSQL ORM and OAuth2 provider.

Aqueduct is a modern Dart HTTP server framework. The framework is composed of libraries for handling and routing HTTP requests, object-relational mapp

Stable Kernel 2.4k Jan 5, 2023
Concepts used Flutter layout,State management, Blockchain integration, Http api integration, Smart contracts

HS_CryptoCoin_Wallet First project using Flutter with Blockchain Getting Started This project is a starting point for a Flutter application. A few res

Harsh Saxena 1 Dec 23, 2021
Easy way to store http response.

Starlight Http Cached The easiest way to store data such as http response,String,int,double,bool,map,list. Features ☑️ Set Cached ☑️ Get Cached ☑️ Del

Ye Myo Aung 3 Jan 9, 2023
Chopper is an http client generator using source_gen and inspired from Retrofit.

Chopper Chopper is an http client generator for Dart and Flutter using source_gen and inspired by Retrofit. Documentation Installation Please refer to

Hadrien Lejard 632 Dec 31, 2022
Petit httpd - This is a simple HTTP file server integrated with Let's Encrypt, gzip and CORS

Petit httpd - This is a simple HTTP file server integrated with Let's Encrypt, gzip and CORS

Graciliano Monteiro Passos 4 Nov 24, 2022
A Dart library for creating a Dart object to represent directory trees.

Directory Tree A Dart library for creating a Dart object to represent directory trees. Getting Started Import and initialize package import 'package:d

Chiziaruhoma Ogbonda 5 Dec 1, 2021
A collection of Dart code samples by Dart DevRel

Dart samples A collection of Dart programs that illustrate features and best practices. For a list of community-maintained projects, see Awesome Dart.

Dart 458 Dec 30, 2022
A discord bot, made with Dart, which lets you run your own pure Dart code snippets directly via a discord ping, and get the output in an instant.

A discord bot, made with Dart, which lets you run your own pure Dart code snippets directly via a discord ping, and get the output in an instant.

Anikate De 3 Oct 21, 2022
A multiplatform Dart movie app with 40% of code sharing between Flutter and the Web.

A multiplatform Dart movie app with 40% of code sharing between Flutter and the Web.

Iiro Krankka 3.4k Dec 30, 2022
Nhost Dart & Flutter packages

Nhost Packages for Dart & Flutter Package nhost_sdk Dart authentication and file storage API clients nhost_flutter_auth Flutter widgets for exposing N

Nhost 58 Dec 29, 2022
A simple and easy to use Redis client for Dart

redis_dart A simple and minimalist Redis client for Dart See it in pub: https://pub.dev/packages/redis_dart and GitHub: https://github.com/gabrielpach

Gabriel Pacheco 7 Dec 25, 2022
Upper is a open source back-end framework based on the Dart language.

What is Upper? Upper is a open source back-end framework based on the Dart language. With it, it is possible to automatically generate a gRPC API for

Andriws Luna 40 Sep 5, 2022
GChat is a chatting application developed using Flutter(Dart) and firebase for 2 users. Trying to Develop an application that does not sell your data with whatsapp rolling out its privacy policy updates.

Gchat - The Chatting Application A Flutter project for chatting. I used Android Studio and you can you any editor of your choice for ex: VS Code, Inte

Sanchaksh Kaul 6 Nov 6, 2022
a python-like bytes_io implementation for dart

bytes_io A python-like bytes_io implementation for dart A powerful helper for processing raw binary data Usage A simple usage example: import 'package

Kelly 5 Aug 31, 2022
A simple app to keep track the time you Learn, Playing, Reading, ... in every week. This is also my attempt to teach myself Flutter & Dart

Progressor 0.0.1 Sometime you want to set a target for you weekly, for example: "Reading Book for 8 hours every week". This app helps you to do that.

Son Nguyen Hoang 4 Oct 12, 2022
A type-safe command-line parsing library for Dart

plade Plade is a type-safe CLI parsing library for Dart. Highlights Fully type-safe and null-safe. Support for a variety of different parsing styles (

Ryan Gonzalez 6 Jan 1, 2022
Utilities for loading and running WASM modules from Dart code

Provides utilities for loading and running WASM modules Built on top of the Wasmer runtime. Setup Run dart run wasm:setup to build the Wasmer runtime.

Dart 284 Dec 23, 2022