connectrpc 0.1.0 copy "connectrpc: ^0.1.0" to clipboard
connectrpc: ^0.1.0 copied to clipboard

Implementation of the Connect protocol for Dart

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate connectrpc

Use it

The package has the following executables:

$ protoc-gen-connect-dart

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add connectrpc

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  connectrpc: ^0.1.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:connectrpc/connect.dart';
import 'package:connectrpc/http2.dart';
import 'package:connectrpc/io.dart';
import 'package:connectrpc/protobuf.dart';
import 'package:connectrpc/protocol/connect.dart';
import 'package:connectrpc/protocol/grpc.dart';
import 'package:connectrpc/protocol/grpc_web.dart';
import 'package:connectrpc/test.dart';
import 'package:connectrpc/web.dart';
13
likes
0
points
15.1k
downloads

Publisher

verified publisherconnectrpc.com

Weekly Downloads

Implementation of the Connect protocol for Dart

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

fixnum, http2, path, protobuf

More

Packages that depend on connectrpc