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

The easiest package to use for calling REST APIs in Flutter, heavily based on http package.

The easiest package to use for calling REST APIs in Flutter, heavily based on http package.

Usage #

A simple usage example:

import 'package:http_modified/http_modified.dart';

// GET 
final result = await get(tag: _tag, url: url);

//POST
final result = await post(
      tag: _tag,
      url: url,
      headers: jsonHeadersWithBearer(token),
      body: json.encode(requestModel.toJson()),
    );
    
//REST with Attachment
 final result = await restWithFile(
      tag: _tag,
      apiMethod: HttpMethods.POST,
      url: url,
      headers: jsonHeadersWithBearer(token),
      apiKeyForFiles: 'attachment',
      files: [AttachmentFile()],
    );

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
140
points
38
downloads

Publisher

verified publishersoewaiyanmyowin.dev

Weekly Downloads

The easiest package to use for calling REST APIs in Flutter, heavily based on http package.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter, http

More

Packages that depend on http_modified