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
120
pub points
0%
popularity

Publisher

verified publishersoewaiyanmyowin.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, flutter, http

More

Packages that depend on http_modified