fetchx 0.0.5 copy "fetchx: ^0.0.5" to clipboard
fetchx: ^0.0.5 copied to clipboard

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

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.

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"
});

6
likes
160
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on fetchx