shelf
shelf copied to clipboard
Web server middleware for Dart
_Originally opened as dart-lang/sdk#18845_ _This issue was originally filed by warren.st...@gmail.com_ --- It would be really useful to have utilities for managing cookies (parsing cookies, setting cookies)
Throws in: https://github.com/dart-lang/shelf/blob/fbc691a595f16d983d6e44efc9b5efbc9003645c/lib/src/request.dart#L178-L184 Because `_computeUrl` returns a URI with a relative path in: https://github.com/dart-lang/shelf/blob/fbc691a595f16d983d6e44efc9b5efbc9003645c/lib/src/request.dart#L318-L320 From https://tools.ietf.org/html/rfc3986#section-3.3 > In addition, a URI reference (Section 4.1) may be a relative-path reference, in...
IOServer has some usage, unlike `ServerHandler`. The usage that it does have is a little clunky. There is only 1 place I've found where the `Server` supertype is used, and...
Based on the implementation it seems to exist to allow a late binding between a `Server` and a `Handler`. The comment mentions "This is used to expose a virtual [Server]...
`serveRequests` does not always wrap listening to http requests in a `runZoneGuarded` wrap: https://github.com/dart-lang/shelf/blob/6e38575985a8094f4ac172228a6711196d9ae91e/lib/shelf_io.dart#L73 https://github.com/dart-lang/shelf/blob/6e38575985a8094f4ac172228a6711196d9ae91e/lib/src/util.dart#L16 This leads to hard to debug async exceptions later if something up its call chain...
Could support cost/immutable data. Nice for common responses? See https://github.com/dart-lang/shelf/issues/9
The following should be supported ``` new Request('GET', Uri.parse('http://localhost')); ``` Note also that the check on https://github.com/dart-lang/shelf/blob/master/lib/src/request.dart#L178 is a bit strange. It compares this.url etc but then prints the result...
**Issue by [Andersmholmgren](https://github.com/Andersmholmgren)** _Originally opened as dart-lang/sdk#20160_ --- Shelf currently only exposes the body as a string or byte stream. http_server provided a sophisticated parser of the body in relation...
Hello! I took a stab at issue #250 . Related https://github.com/google/dart-neats/issues/40 https://github.com/VeryGoodOpenSource/dart_frog/issues/136 This allows defining nested routes in a quite nicely composable manner. ```dart import 'dart:io'; import 'package:shelf/shelf.dart'; import 'package:shelf/shelf_io.dart';...
If I currently want to remove a Header in a middleware I have to do: - Get the current header Map - Remove the header out there - Change the...