You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Grpc.Core.Api/Metadata.cs
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -128,16 +128,20 @@ public IEnumerable<Entry> GetAll(string key)
128
128
}
129
129
130
130
/// <summary>
131
-
/// Adds a new ASCII-valued metadata entry. See <c>Metadata.Entry</c> constructor for params.
131
+
/// Adds a new ASCII-valued metadata entry.
132
132
/// </summary>
133
+
/// <param name="key">Metadata key. Gets converted to lowercase. Must not use <c>-bin</c> suffix indicating a binary-valued metadata entry. Can only contain lowercase alphanumeric characters, underscores, hyphens, and dots.</param>
134
+
/// <param name="value">Value string. Only ASCII characters are allowed.</param>
133
135
publicvoidAdd(stringkey,stringvalue)
134
136
{
135
137
Add(newEntry(key,value));
136
138
}
137
139
138
140
/// <summary>
139
-
/// Adds a new binary-valued metadata entry. See <c>Metadata.Entry</c> constructor for params.
141
+
/// Adds a new binary-valued metadata entry.
140
142
/// </summary>
143
+
/// <param name="key">Metadata key. Gets converted to lowercase. Needs to have <c>-bin</c> suffix indicating a binary-valued metadata entry. The binary header suffix can be added to the key with <see cref="Metadata.BinaryHeaderSuffix"/>. Can only contain lowercase alphanumeric characters, underscores, hyphens, and dots.</param>
/// Initializes a new instance of the <see cref="Grpc.Core.Metadata.Entry"/> struct with a binary value.
292
296
/// </summary>
293
-
/// <param name="key">Metadata key. Gets converted to lowercase. Needs to have suffix indicating a binaryvalued metadata entry. Can only contain lowercase alphanumeric characters, underscores, hyphens and dots.</param>
297
+
/// <param name="key">Metadata key. Gets converted to lowercase. Needs to have <c>-bin</c> suffix indicating a binary-valued metadata entry. The binary header suffix can be added to the key with <see cref="Metadata.BinaryHeaderSuffix"/>. Can only contain lowercase alphanumeric characters, underscores, hyphens, and dots.</param>
@@ -306,7 +310,7 @@ public Entry(string key, byte[] valueBytes)
306
310
/// <summary>
307
311
/// Initializes a new instance of the <see cref="Grpc.Core.Metadata.Entry"/> struct with an ASCII value.
308
312
/// </summary>
309
-
/// <param name="key">Metadata key. Gets converted to lowercase. Must not use suffix indicating a binaryvalued metadata entry. Can only contain lowercase alphanumeric characters, underscores, hyphens and dots.</param>
313
+
/// <param name="key">Metadata key. Gets converted to lowercase. Must not use '-bin' suffix indicating a binary-valued metadata entry. Can only contain lowercase alphanumeric characters, underscores, hyphens, and dots.</param>
310
314
/// <param name="value">Value string. Only ASCII characters are allowed.</param>
0 commit comments