kratos_plugin 0.0.1 copy "kratos_plugin: ^0.0.1" to clipboard
kratos_plugin: ^0.0.1 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
23
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Runtime support for kratos dart http client.

Repository (GitHub)

License

MIT (license)

Dependencies

json_annotation, path

More

Packages that depend on kratos_plugin