kratos_plugin 0.0.2 copy "kratos_plugin: ^0.0.2" to clipboard
kratos_plugin: ^0.0.2 copied to clipboard

Runtime support for kratos dart http client.

example/kratos_plugin_example.dart

import 'package:kratos_plugin/kratos_plugin.dart';

void main() {
  final arg = RequestArg.fromPattern(
    HttpRule(
      kind: 'get',
      path: '/hello/{name}',
      body: '',
    ),
    {
      'name': 'foo',
    },
  );

  print(arg.url); // /hello/foo
  print(arg.body); // {}
}
1
likes
140
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Runtime support for kratos dart http client.

Repository (GitHub)

License

MIT (license)

Dependencies

path

More

Packages that depend on kratos_plugin