File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
packages/dart_frog/test/src Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -254,36 +254,5 @@ SFTrELxay/xfdivEUxK9wEIG
254254 throwsA (isA <HandshakeException >()),
255255 );
256256 });
257-
258- test ('can read request.body across middleware:handler gap' , () async {
259- Middleware middleware () {
260- return (handler) {
261- return (context) async {
262- await context.request.body ();
263- return handler (context);
264- };
265- };
266- }
267-
268- Handler handler () {
269- return (context) async {
270- await context.request.body ();
271- return Response ();
272- };
273- }
274-
275- final pipeline = const Pipeline ().addMiddleware (middleware ());
276- final router = Router ()..mount ('/' , handler ());
277- final server = await serve (
278- pipeline.addHandler (router.call),
279- 'localhost' ,
280- 3000 ,
281- );
282- final client = HttpClient ();
283- final request = await client.getUrl (Uri .parse ('http://localhost:3000' ));
284- final response = await request.close ();
285- expect (response.statusCode, equals (HttpStatus .ok));
286- await server.close ();
287- });
288257 });
289258}
You can’t perform that action at this time.
0 commit comments