Reintroduce x-goog-api-client for common-grpc#2164
Reintroduce x-goog-api-client for common-grpc#2164stephenplusplus merged 3 commits intogoogleapis:masterfrom
Conversation
This introduces this header for non-gapic APIs. Revise of googleapis#2020.
packages/common-grpc/src/service.js
Outdated
|
|
||
| this.grpcMetadata.add('x-goog-api-client', [ | ||
| 'gl-node/' + process.versions.node, | ||
| 'gccl/' + (config.packageJson.version || ''), |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 'gccl/' + (config.packageJson.version || ''), | ||
| 'grpc/' + grpcVersion | ||
| ].join(' ')); | ||
| if (config.grpcMetadata) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
packages/common-grpc/test/service.js
Outdated
| 'x-goog-api-client': [ | ||
| 'gl-node/' + process.versions.node, | ||
| 'gccl/' + CONFIG.packageJson.version, | ||
| 'grpc/' + grpcVersion].join(' ') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
packages/common-grpc/src/service.js
Outdated
| this.grpcMetadata.add('x-goog-api-client', [ | ||
| 'gl-node/' + process.versions.node, | ||
| 'gccl/' + (config.packageJson.version || ''), | ||
| 'grpc/' + grpcVersion |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
packages/common-grpc/test/service.js
Outdated
| var extend = require('extend'); | ||
| var googleProtoFiles = require('google-proto-files'); | ||
| var grpc = require('grpc'); | ||
| var grpcVersion = require('grpc/package.json').version; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This introduces this header for non-gapic APIs.
Revise of #2020.