Commit Graph

260 Commits

Author SHA1 Message Date
Yang Gao ee7ab3db2f Remove include google/protobuf/message.h as it should be covered in config.h 2015-03-04 09:08:28 -08:00
Yang Gao 5b61d5194d formatting 2015-03-03 10:21:27 -08:00
Yang Gao 7694c35d5f Global replace google::protobuf::Message with grpc::protobuf::Message, all tests passed 2015-03-03 09:48:06 -08:00
Yang Gao 4e233a1a46 Add macros 2015-03-03 09:17:41 -08:00
Eric Anderson 5b53e35ba4 Remove HTTP mappings from status.h
The mappings are a combination of useless, inaccurate, and harmful.
Leave them out until they are helpful and correct.

Fundamental issues:
 - If in need of mappings, a user would need HTTP -> gRPC code mappings.
   But the docs don't provide that since the mappings are not 1:1.
 - There _is no_ gRPC -> HTTP code mapping taking place in gRPC. This
   may change in the future, but until then the docs are misleading.

But even given those were resolved, there are additional issues. Two
obvious examples:
 - 501 Not Implemented is refering to HTTP methods such as GET and POST
   not being implement. That should not be used for gRPC methods not
   found (UNIMPLEMENTED).
 - 404 Not Found is for when the resource is not found. In gRPC, the
   resource is the gRPC method, not the parameters (NOT_FOUND). If there
   is a REST conversion layer on top of gRPC, then 404 would be
   appropriate, but that just shows that the mapping can not be
   canonical.
2015-03-02 09:42:02 -08:00
Nicolas "Pixel" Noble 1ff52d5278 Guard headers tool. 2015-03-01 06:18:14 +01:00
Craig Tiller cf133f41f8 Make it possible to compile with gcc4.6 2015-02-26 14:27:05 -08:00
Craig Tiller cb0a28eb86 Merge pull request #755 from nicolasnoble/feedback
Second batch of feedback.
2015-02-24 16:59:14 -08:00
Nicolas Noble 085603c112 Second batch of feedback. 2015-02-24 16:52:06 -08:00
Craig Tiller 6e57b9edb1 Add Server.Wait 2015-02-24 15:46:22 -08:00
Craig Tiller b9d91eb454 Merge github.com:google/grpc into deprecate-c++
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
2015-02-23 17:13:40 -08:00
Nicolas Noble 65b0759653 Addressing a first batch of feedback. 2015-02-23 15:38:52 -08:00
Craig Tiller 74ae8f61d9 Merge pull request #710 from jboeuf/default_google_creds
Added support for default credentials.
2015-02-23 14:41:18 -08:00
Craig Tiller e4fe844b67 s/CreateChannel/CreateChannelDeprecated
For the 2-argument version of CreateChannel.

This is a temporary step until #711 is ready to roll out.
2015-02-23 13:55:15 -08:00
Julien Boeuf c66f2a816e Addressing iniitial feedback.
- Renaming default credentials -> google default credentials.
- Various other things in cpp:
  - Adding Cpp wrapping for JWT Tokens.
  - Renaming ComposeCredentials -> CompositeCredentials.
2015-02-23 13:00:36 -08:00
Julien Boeuf cd9b1c850d Added support for default credentials.
- Tested with new tool (print_default_creds_token) on:
  - workstation for env var and well known place.
  - GCE for compute engine default creds.
- I'd prefer the grpc_default_credentials_create() API to remain
  synchronous even though there may be an async call for gce detection
  on which we block.
2015-02-21 21:57:42 -08:00
Nicolas "Pixel" Noble b87d176183 Merge branch 'master' of github.com:google/grpc into installed_ssl_roots-patch 2015-02-22 05:41:15 +01:00
Craig Tiller 8883e94e1e Merge pull request #703 from nicolasnoble/win32
Fixing Windows port.
2015-02-21 07:08:22 -08:00
Nicolas "Pixel" Noble 589cba2c7b Factorizing out function split_host_port. 2015-02-20 22:59:49 -08:00
Julien Boeuf 3e001792fa Adding roots.pem from Mozilla and associated logic.
- The roots.pem file has been generated from
  https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt
  using
  https://github.com/agl/extract-nss-root-certs
2015-02-20 15:55:17 -08:00
Nicolas Noble 2c29920e73 Revert "Adding a constant for a well known place where the SSL roots are installed." 2015-02-19 23:10:10 -08:00
Julien Boeuf d0c0a9d68c Adding a constant for a well known place where the SSL roots are installed. 2015-02-19 22:06:45 -08:00
Julien Boeuf f47a5cb93d Implementing JWT credentials (a.k.a JWT ID Tokens).
- Not tested end to end yet
2015-02-19 17:29:41 -08:00
Yang Gao d9f3dfe7eb Merge pull request #581 from ctiller/an-update-on-c++
Server side cancellation receive support for C++
2015-02-18 16:01:13 -08:00
Craig Tiller 2627e4e0a9 Merge with async unary changes 2015-02-18 15:54:14 -08:00
Craig Tiller 2d11c93ab5 Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 15:51:50 -08:00
Craig Tiller e9defd77de Delete symlink to my home directory 2015-02-18 15:49:08 -08:00
Craig Tiller d24d13d6eb Simplify TryPluck 2015-02-18 15:35:32 -08:00
Craig Tiller c7625b0e5f Move header #include 2015-02-18 15:18:58 -08:00
Craig Tiller 8a287d1a1b Merge pull request #588 from yang-g/c++api
Async client api change. Add a ClientAsyncResponseReader.
2015-02-18 14:50:14 -08:00
Yang Gao 68bc778b63 2015 2015-02-18 14:41:40 -08:00
Yang Gao 3a5e5495e5 Async client api change. Add a ClientAsyncResponseReader. Make the api similar to streaming and symmetric to server side. 2015-02-18 14:32:38 -08:00
Nathaniel Manista befd64eace Merge pull request #572 from ctiller/dox7
Clarify completion queue laws
2015-02-18 13:27:45 -08:00
Nathaniel Manista d50bf4d98a Merge pull request #563 from ctiller/dox4
Expand init/destroy documentation
2015-02-18 13:27:04 -08:00
Craig Tiller f01ea7cee8 Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 13:21:02 -08:00
Craig Tiller 7326901767 Merge pull request #579 from yang-g/c++api
change metadata getters to return const&
2015-02-18 13:18:53 -08:00
Craig Tiller eaaee49f9b Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 13:14:15 -08:00
Craig Tiller 492968f7d9 Server side cancellation receive support 2015-02-18 13:14:03 -08:00
Yang Gao d0d007e6d1 change metadata getters to return const& 2015-02-18 10:28:09 -08:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
Craig Tiller 645466e089 Initial sketch 2015-02-18 09:18:33 -08:00
Craig Tiller 0605995e55 Update copyright to 2015 2015-02-18 08:34:56 -08:00
Craig Tiller 6d5f42e79a Fix copyright notice 2015-02-18 08:31:24 -08:00
Craig Tiller aface44b34 Merge pull request #573 from yang-g/c++api
Changes to support server metadata.
2015-02-18 07:35:35 -08:00
Yang Gao 2b7f537546 Add metadata test with rpc. Adding/fixing things to make it work 2015-02-18 00:45:53 -08:00
Nathaniel Manista 4ddf950c89 Merge pull request #562 from ctiller/dox3
More channel argument documentation.
2015-02-17 23:10:16 -08:00
Craig Tiller 8ac56c9607 Clarify completion queue laws 2015-02-17 22:51:36 -08:00
Craig Tiller 7bd5ab1055 Merge github.com:grpc/grpc into c++api
Conflicts:
	src/core/surface/server.c
2015-02-17 22:29:04 -08:00
Yang Gao 52342b3950 Merge pull request #561 from ctiller/dox
Fix shutdown semantics.
2015-02-17 22:12:46 -08:00
Craig Tiller 1ece67cba2 Merge github.com:grpc/grpc into c++api 2015-02-17 22:02:34 -08:00