FLUTTER ECOSYSTEM

http_methods

List of all HTTP methods registered with IANA as list of strings, and metadata such as whether a method idempotent.

Latest version
1.1.1
30-day downloads
288.1K
Likes
11
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The http_methods package provides a comprehensive, standardized list of all HTTP methods registered with IANA. It includes each method as a string along with metadata such as idempotency status, enabling consistent and reliable handling of HTTP semantics in Dart applications. This utility simplifies validation, routing, and debugging by offering a single source of truth for HTTP method definitions across platforms.

Use cases
  • Validating HTTP request methods
  • Implementing RESTful API routing
  • Debugging HTTP interactions
  • Ensuring idempotency compliance
  • Building HTTP clients with method awareness
Key features
  • IANA-registered HTTP methods
  • Idempotency metadata
  • Type-safe method representation
  • Cross-platform support
  • Lightweight and minimal
  • Easy integration via pub
Suitable for
  • API developers
  • HTTP client builders
  • Backend service integrators
  • Testing frameworks
  • Educational projects
Considerations
  • Does not handle HTTP requests directly
  • Requires manual use with HTTP clients
  • No built-in error handling
  • Not intended for HTTP server implementation
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add http_methods

Categories

Source repository

Related projects

No data available yet.