Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
0c2f1626
Commit
0c2f1626
authored
9 years ago
by
David Garcia Quintas
Browse files
Options
Downloads
Patches
Plain Diff
Moved docs from .c to .h for compress_filter
parent
cadbf224
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/channel/compress_filter.c
+0
-20
0 additions, 20 deletions
src/core/channel/compress_filter.c
src/core/channel/compress_filter.h
+19
-5
19 additions, 5 deletions
src/core/channel/compress_filter.h
with
19 additions
and
25 deletions
src/core/channel/compress_filter.c
+
0
−
20
View file @
0c2f1626
...
@@ -31,26 +31,6 @@
...
@@ -31,26 +31,6 @@
*
*
*/
*/
/** Compression filter for outgoing data.
*
* Compression settings may come from:
* - Channel configuration, as established at channel creation time.
* - The metadata accompanying the outgoing data to be compressed. This is
* taken as a request only. We may choose not to honor it. The metadata key
* is given by \a GRPC_COMPRESS_REQUEST_ALGORITHM_KEY.
*
* Compression can be disabled for concrete messages (for instance in order to
* prevent CRIME/BEAST type attacks) by having the GRPC_WRITE_NO_COMPRESS set in
* the BEGIN_MESSAGE flags.
*
* The attempted compression mechanism is added to the resulting initial
* metadata under the'grpc-encoding' key.
*
* If compression is actually performed, BEGIN_MESSAGE's flag is modified to
* incorporate GRPC_WRITE_INTERNAL_COMPRESS. Otherwise, and regardless of the
* aforementioned 'grpc-encoding' metadata value, data will pass through
* uncompressed. */
#include
<assert.h>
#include
<assert.h>
#include
<string.h>
#include
<string.h>
...
...
This diff is collapsed.
Click to expand it.
src/core/channel/compress_filter.h
+
19
−
5
View file @
0c2f1626
...
@@ -38,14 +38,28 @@
...
@@ -38,14 +38,28 @@
#define GRPC_COMPRESS_REQUEST_ALGORITHM_KEY "internal:grpc-encoding-request"
#define GRPC_COMPRESS_REQUEST_ALGORITHM_KEY "internal:grpc-encoding-request"
/**
Message-level c
ompression filter.
/**
C
ompression filter
for outgoing data
.
*
*
* See <grpc/compression.h> for the available compression settings.
* See <grpc/compression.h> for the available compression settings.
*
*
* grpc_op instances of type GRPC_OP_SEND_MESSAGE can have the bit specified by
* Compression settings may come from:
* the GRPC_WRITE_NO_COMPRESS mask in order to disable compression in an
* - Channel configuration, as established at channel creation time.
* otherwise compressed channel.
* - The metadata accompanying the outgoing data to be compressed. This is
* */
* taken as a request only. We may choose not to honor it. The metadata key
* is given by \a GRPC_COMPRESS_REQUEST_ALGORITHM_KEY.
*
* Compression can be disabled for concrete messages (for instance in order to
* prevent CRIME/BEAST type attacks) by having the GRPC_WRITE_NO_COMPRESS set in
* the BEGIN_MESSAGE flags.
*
* The attempted compression mechanism is added to the resulting initial
* metadata under the'grpc-encoding' key.
*
* If compression is actually performed, BEGIN_MESSAGE's flag is modified to
* incorporate GRPC_WRITE_INTERNAL_COMPRESS. Otherwise, and regardless of the
* aforementioned 'grpc-encoding' metadata value, data will pass through
* uncompressed. */
extern
const
grpc_channel_filter
grpc_compress_filter
;
extern
const
grpc_channel_filter
grpc_compress_filter
;
#endif
/* GRPC_INTERNAL_CORE_CHANNEL_COMPRESS_FILTER_H */
#endif
/* GRPC_INTERNAL_CORE_CHANNEL_COMPRESS_FILTER_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment