h4 1.1.0
h4: ^1.1.0 copied to clipboard
A minimal HTTP library for building elegant, composable server applications. Lightweight core with utilities for adding functionalities to your server. You can even create your own!
0.0.1 #
- Initial development release.
1.0.0 #
- Initial Stable Release
Breaking Changes
- The createError exception in the http library now expects the error message as a String and the error code as an int, instead of a Map<String, dynamic> containing these two values. The signature has changed from createError(Map<String, dynamic> errorData) to createError(String message, int? errorCode). Where error code defaults to 400.
Added
- onError and onRequest middleware.
- Asynchronous Event Handlers.
1.1.0 - 2024-05-30 #
- Minor Release
Added
- You can now initialize the server with another port apart from 3000 by passing a port value to the named port parameter in createApp()
var app = createApp(port: 5000)