Bálint Böde
f5508d9801
Fix a typo on the inner invoker parameters ( #492 )
2021-06-29 23:56:12 +02:00
Piotr Morgwai Kotarbinski
d4504dacf1
GrpcOrGrpcWeb: provide more flexible constructors ( #484 ) ( #485 )
2021-06-08 11:14:57 +02:00
Piotr Morgwai Kotarbinski
7c8fca7195
GrpcOrGrpcWeb: remove checking if ports are different ( #482 ) ( #483 )
...
* GrpcOrGrpcWeb: remove checking if ports are different (#482 )
Using the same port is a standard for AspNetCore gRPC server.
* improve source docs
2021-06-03 12:56:02 +02:00
Piotr Morgwai Kotarbinski
e88b84a993
Add GrpcOrGrpcWebClientChannel ( #457 ) ( #479 )
2021-06-02 12:25:23 +02:00
Vyacheslav Egorov
2f5ef8c663
Fix directives_ordering lint ( #473 )
2021-05-03 17:00:44 +02:00
Daniel Brauner
6c16fceb2a
Be more resilient to broken deployments ( #460 )
...
Require 200 HTTP status and a supported Content-Type
header to be present in a response.
When handling malformed responses make effort
to translate HTTP statuses into gRPC statuses as
gRPC protocol specification recommends.
Fixes #421
Fixes #458
Co-authored-by: Vyacheslav Egorov <vegorov@google.com>
2021-03-22 17:22:32 +01:00
Sam Rawlins
7e8952c352
Bump mockito to breaking change with fixes ( #450 )
2021-02-04 09:42:29 +01:00
Kevin Moore
32fbc03c63
Enable and fix pedantic v1.9 lints ( #445 )
...
Co-authored-by: Vyacheslav Egorov <vegorov@google.com>
2021-02-01 09:12:26 +01:00
Ivan Inozemtsev
1e1831a187
Migrate grpc to null safety ( #432 )
2021-01-29 12:40:52 +01:00
Ji Li
2584a5e536
Add XHR raw response to the GrpcError for a better debugging ( #423 )
...
Co-authored-by: Vyacheslav Egorov <vegorov@google.com>
2021-01-28 12:33:41 +01:00
Vyacheslav Egorov
ed960c26c6
Avoid deprecated List() constructor. ( #415 )
...
Enable prefer_collection_literals lint.
2020-12-17 10:50:45 +01:00
Ankur Jain
c48af638a5
Support message compression ( #409 )
...
* Added support for compression/decompression, which can be configured through
`ChannelOptions` constructor's `codecRegistry` parameter or adding the
`grpc-accept-encoding` to `metadata` parameter of `CallOptions` on the client
side and `codecRegistry` parameter to `Server` on the server side.
Outgoing rpc can be compressed using the `compression` parameter on the
`CallOptions`.
Closes #6
2020-12-11 09:52:24 +01:00
Zbigniew Mandziejewicz
8b71a9dab2
Ensure CallOptions merge preserves Web specific options
2020-11-11 15:49:39 +01:00
Zbigniew Mandziejewicz
9f83e124e9
feat: support client interceptors ( #338 )
...
* Added support for client interceptors, which can be configured through
Client constructor's interceptors parameter. Interceptors will be
executed by Client.$createStreamingCall and Client.$createUnaryCall.
Using interceptors requires regenerating client stubs using version 19.2.0 or
newer of protobuf compiler plugin.
* Client.$createCall is deprecated because it does not invoke client
interceptors.
2020-11-02 11:13:56 +01:00
Andrew Coutts
b6e40c34e3
Add decoded grpc-status-details-bin details to GrpcError ( #349 )
...
Closes #209
2020-10-27 17:07:58 +01:00
Nic Hite
fa6b127dca
Create gRPC servers and clients with TransportConnections. ( #364 )
...
* Create gRPC servers and clients with TransportConnections.
* switch class ordering to put base class first.
2020-10-05 19:34:39 -07:00
Vyacheslav Egorov
831f5d8cfb
Revert "Not to fail pending requests, just reschedule it ( #303 )" ( #366 )
...
This reverts commit 9ed03b6b96 .
This change prevents client from gracefully handling connection issues and instead just makes it infinitely trying to reconnect.
Closes #339
2020-10-02 22:22:33 +02:00
Nic Hite
a774583de0
Beef up exception handling in gRPC code. ( #360 )
...
* Beef up exception handling in gRPC code.
* Verify default stacktrace isn't used in exceptions
2020-09-29 01:01:18 -07:00
Nic Hite
bb4eab0f1f
Add browser features to Dart gRPC-web for parity with JS implementation. ( #347 )
...
* Add bypassCorsPreflight capability to gRPC-web Dart.
* fix tests and run dartfmt.
* remove print statement
* dartfmt
* Update pubspec.
* Fix changelog.
* Fix tests
* final dartfmt
* Respond to requested changes.
* revert extra newline in changelog
Co-authored-by: Michael Thomsen <mit@google.com>
2020-09-24 21:52:35 -07:00
Vyacheslav Egorov
3414356950
Revert "Support grpc-web in pure dart ( #287 )" ( #351 )
...
This reverts commit c513e1467f .
The original commit has broken streaming due to limitations of package:http.
2020-09-17 10:59:15 -07:00
Koichi Ishida
98ff843751
Decode gRPC error message ( #326 )
2020-07-20 16:11:19 +02:00
Oleg Maslovsky
9ed03b6b96
Not to fail pending requests, just reschedule it ( #303 )
2020-06-08 10:16:00 +02:00
Robson Araujo
c513e1467f
Support grpc-web in pure dart ( #287 )
...
By using package:http for making connections.
2020-05-12 09:01:36 +02:00
Sigurd Meldgaard
6061512afa
Grpc-web Handle empty trailers ( #247 )
...
* Grpc-web Handle empty trailers
2019-11-07 10:52:13 +01:00
Sigurd Meldgaard
dcac905a13
Fix interop ( #207 )
...
* Fix computation of authority
2019-06-27 14:43:15 +02:00
Sigurd Meldgaard
91564ff7aa
grpc-web support ( #191 )
...
* grpc-web support
This commits merges the grpc-web branch into master.
It is based on work by https://github.com/fuzzybinary .
2019-06-17 13:31:07 +02:00
Sigurd Meldgaard
d7ae930e7f
Revert "Support grpc-web" ( #159 )
...
This reverts commit d58659507c .
Development of grpc-web will continue on the branch
https://github.com/grpc/grpc-dart/tree/grpc-web until it is ready.
2019-03-18 13:46:50 +01:00
Jeff Ward
d58659507c
Support grpc-web
2019-03-15 12:51:06 +01:00