-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into angular-support
- Loading branch information
Showing
10 changed files
with
160 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This repository is governed by the gRPC organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* @fileoverview grpc.web.CallOptions | ||
*/ | ||
|
||
goog.module('grpc.web.CallOptions'); | ||
goog.module.declareLegacyNamespace(); | ||
|
||
/** | ||
* The collection of runtime options for a new RPC call. | ||
* | ||
* @constructor | ||
*/ | ||
const CallOptions = function() { | ||
/** | ||
* @const {!Object<string, ?>} | ||
* @private | ||
*/ | ||
this.properties_ = {}; | ||
}; | ||
|
||
/** | ||
* Add a new CallOption or override an existing one. | ||
* | ||
* @param {string} name name of the CallOption that should be added/overridden. | ||
* @param {?} value value of the CallOption | ||
*/ | ||
CallOptions.prototype.setOption = function(name, value) { | ||
this.properties_[name] = value; | ||
}; | ||
|
||
/** | ||
* Get the value of one CallOption. | ||
* | ||
* @param {string} name name of the CallOption. | ||
* @return {?} value of the CallOption. If name doesn't exist, will return | ||
* 'undefined'. | ||
*/ | ||
CallOptions.prototype.get = function(name) { | ||
return this.properties_[name]; | ||
}; | ||
|
||
/** | ||
* Remove a CallOption. | ||
* | ||
* @param {string} name name of the CallOption that shoud be removed. | ||
*/ | ||
CallOptions.prototype.removeOption = function(name) { | ||
delete this.properties_[name]; | ||
}; | ||
|
||
exports = CallOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# grpc-web java connector | ||
|
||
## About This Repository | ||
This repo is for Java in-process (jar) code to add support for grpc-web protocol in grpc services. |