h4 1.1.0 copy "h4: ^1.1.0" to clipboard
h4: ^1.1.0 copied to clipboard

retracted

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)
3
likes
0
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

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!

Repository (GitHub)
View/report issues

Topics

#http #server #api

License

unknown (license)

Dependencies

extension_type_unions, http2, meta

More

Packages that depend on h4