spry_urlencoded 1.0.0 copy "spry_urlencoded: ^1.0.0" to clipboard
spry_urlencoded: ^1.0.0 copied to clipboard

discontinuedreplaced by: spry

The package provides a middleware and extension for Spry to parse application/x-www-form-urlencoded request body.

example/main.dart

import 'package:spry/spry.dart';
import 'package:spry_urlencoded/spry_urlencoded.dart';

final spry = Spry();
final urlencoded = Urlencoded();

void handler(Context context) async {
  final urlencoded = await context.request.urlencoded();

  print(urlencoded);
}

void main() async {
  spry.use(urlencoded);
  await spry.listen(handler, port: 3000);

  print('Listening on http://localhost:3000');
}
0
likes
140
points
2
downloads

Publisher

verified publisherodroe.com

Weekly Downloads

The package provides a middleware and extension for Spry to parse application/x-www-form-urlencoded request body.

Documentation

API reference

License

MIT (license)

Dependencies

spry

More

Packages that depend on spry_urlencoded