Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1593)

Unified Diff: sdk/lib/io/secure_server_socket.dart

Issue 2770573003: Add documentation to ALPN functionality in dart:io (Closed)
Patch Set: addressed comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/secure_server_socket.dart
diff --git a/sdk/lib/io/secure_server_socket.dart b/sdk/lib/io/secure_server_socket.dart
index 7dfdb478f396beb2533779713a080cbf9bc3dd09..e9ffb97c346c57fcc3304b922158bb96de672a3a 100644
--- a/sdk/lib/io/secure_server_socket.dart
+++ b/sdk/lib/io/secure_server_socket.dart
@@ -53,6 +53,11 @@ class SecureServerSocket extends Stream<SecureSocket> {
* SecureSocket.peerCertificate after connecting. If no certificate
* was received, the result will be null.
*
+ * [supportedProtocols] is an optional list of protocols (in decreasing
+ * order of preference) to use during the ALPN protocol negogiation with
+ * clients. Example values are "http/1.1" or "h2". The selected protocol
+ * can be obtained via [SecureSocket.selectedProtocol].
+ *
* The optional argument [shared] specifies whether additional
* SecureServerSocket objects can bind to the same combination of `address`,
* `port` and `v6Only`. If `shared` is `true` and more `SecureServerSocket`s
@@ -177,6 +182,11 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
* check SecureSocket.peerCertificate after connecting. If no certificate
* was received, the result will be null.
*
+ * [supportedProtocols] is an optional list of protocols (in decreasing
+ * order of preference) to use during the ALPN protocol negogiation with
+ * clients. Example values are "http/1.1" or "h2". The selected protocol
+ * can be obtained via [RawSecureSocket.selectedProtocol].
+ *
* The optional argument [shared] specifies whether additional
* RawSecureServerSocket objects can bind to the same combination of
* `address`, `port` and `v6Only`. If `shared` is `true` and more
« no previous file with comments | « no previous file | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698