shelf
shelf copied to clipboard
Web server middleware for Dart
Hello, I am using an encrypted file, and need to be decrypted right before use it. so iIneed to handle the file itself, not the file path. can you make...
It would be great to add middleware annotation for handlers. So, it can be something like that: ```dart class ShelfMiddleware { const ShelfMiddleware(this.middleware); final List middleware; } Middleware _logRequests() {...
we need stronger web server and api server not only flutter stronger server make a new stronger
I want to allow the user to cancel the incoming request. Is there a way to achieve this? I tried to restart the server using `httpServer.close(force: true);` but the port...
Hi, I have a router like the following, using a Pipeline for an authorization middleware. ``` router.get( '/user/', Pipeline() .addMiddleware(authorize(authorization)) .addHandler(_getCurrentUserHandler)); ``` I see I could use something like: ```...
I want to know it can set up keep-alive
``` Response.ok( Object? body, { Map? headers, Encoding? encoding, Map? context, }) ```
With the Response.context populated with the processed file, other middleware can manipulate the response in an optimized way and ensure the correct processed file. Without this, another middleware would need...
request from android emulator with IP 10.0.2.2 not working
As you don't have `discussions` section enabled I ask here. In Dart, any error or unhandled error is supposed to crash the app, but when an error happens inside a...