http_wrap 1.1.5 copy "http_wrap: ^1.1.5" to clipboard
http_wrap: ^1.1.5 copied to clipboard

A lightweight Dart and Flutter HTTP wrapper with shared configuration, multipart uploads, and unified responses.

1.1.5 #

  • Changed multipart fields encoding for List and Map values to Laravel/PHP-style bracketed keys (for example: items[0], meta[name]) instead of JSON strings.
  • Fixed multipart payload handling to avoid sending array values as string literals like "[]".
  • Clarified multipart empty-list behavior: explicit empty lists are omitted because multipart form fields cannot represent [] directly.
  • Refactored multipart field flattening to an iterative (non-recursive) implementation and moved it into a dedicated part file.

1.1.4 #

  • Refreshed package and example documentation to match the current fields, queryParams, and requestFiles API.
  • Improved generated plugin comments and package metadata to better describe the Dart-first request flow.
  • Cleaned up internal library part declarations for request file and response types without changing the public API.

1.1.3 #

  • Added another fix to remove fields with empty or null value for multipart request

1.1.2 #

  • Removed empty fields for for request field request data

1.1.1 #

  • Fixed multipart form field serialization for complex values.
  • Multipart fields values that are List or Map are now JSON-encoded before sending.
  • Added documentation notes clarifying multipart serialization behavior.

1.1.0 #

  • Added requestFiles support for multipart uploads using RequestFileFromPath, RequestFileFromBytes, and RequestFileFromString.
  • Deprecated the files parameter in request() in favor of requestFiles.
  • Kept backward compatibility for files so existing integrations continue to work.
  • Updated multipart request handling so requests switch to multipart mode when requestFiles is provided.
  • Refactored request file type handling to clearer Dart pattern matching.

1.0.0 #

  • Initial release of the http_wrap plugin.
  • Added a simple request wrapper with support for headers, query params, and request body fields.
  • Added multipart/form-data support for file uploads.
  • Added unified HttpResponse handling with optional error metadata (errorCode, errorData).
0
likes
160
points
304
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight Dart and Flutter HTTP wrapper with shared configuration, multipart uploads, and unified responses.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http, plugin_platform_interface

More

Packages that depend on http_wrap

Packages that implement http_wrap