aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-08-22 08:41:24 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-08-22 08:41:24 -0700
commitf57158be12adaba211d4371f5311a403b0c01d43 (patch)
treea73a65af32e55cce2bc69e7e81acbb93f129b03d /src/core/lib/support
parent1a636aba7f8aed010d2fc187122c3c4b4ac9d7ca (diff)
Add explanations
Diffstat (limited to 'src/core/lib/support')
-rw-r--r--src/core/lib/support/percent_encoding.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/lib/support/percent_encoding.h b/src/core/lib/support/percent_encoding.h
index 61d7b6d361..000bf14ede 100644
--- a/src/core/lib/support/percent_encoding.h
+++ b/src/core/lib/support/percent_encoding.h
@@ -31,8 +31,15 @@
*
*/
-#ifndef PRECENT_H
-#define PRECENT_H
+#ifndef GRPC_CORE_LIB_SUPPORT_PERCENT_ENCODING_H
+#define GRPC_CORE_LIB_SUPPORT_PERCENT_ENCODING_H
+
+/* Percent encoding and decoding of slices.
+ Transforms arbitrary strings into safe-for-transmission strings by using
+ variants of percent encoding (RFC 3986).
+ Two major variants are supplied: one that strictly matches URL encoding,
+ and another which applies percent encoding only to non-http2 header
+ bytes (the 'compatible' variant) */
#include <stdbool.h>
@@ -68,4 +75,4 @@ bool gpr_strict_percent_decode_slice(gpr_slice slice_in,
This cannot fail. */
gpr_slice gpr_permissive_percent_decode_slice(gpr_slice slice_in);
-#endif /* PRECENT_H */
+#endif /* GRPC_CORE_LIB_SUPPORT_PERCENT_ENCODING_H */