shelf_essentials 1.0.1
shelf_essentials: ^1.0.1 copied to clipboard
Essential utilities and middleware for building web servers with Shelf in Dart and Flutter.
1.0.1 #
- Add CORS headers middleware for cross-origin request support
- Add
corsHeaders()middleware function with origin validation - Add
originAllowAll()for unrestricted CORS - Add
originOneOf()for origin whitelist validation - Improve dartdoc documentation for all public APIs
- Enhance README with CORS usage examples and API reference
1.0.0 #
- Initial release
- Add
RequestExtensionwith methods for reading body, parsing JSON, handling form data - Add
HttpMethodenum for type-safe HTTP method handling - Add
FormDataclass for parsing URL-encoded and multipart form data - Add
UploadedFileclass for accessing uploaded files - Add
UnsupportedHttpMethodExceptionfor unsupported HTTP methods