Skip to content

Commit 3514767

Browse files
a-sivaCommit Queue
authored andcommitted
[sdk/lib] Fix typo in documentation.
Bug: 60253 Change-Id: I5d3968b5f7aa3a770ecaa693e938752ea86f9da2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414340 Reviewed-by: Brian Quinlan <[email protected]> Reviewed-by: Kevin Moore <[email protected]> Commit-Queue: Siva Annamalai <[email protected]>
1 parent 6322a40 commit 3514767

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

sdk/lib/_http/http.dart

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ abstract interface class HttpResponse implements IOSink {
11361136
/// socket is detached the HTTP server will no longer perform any
11371137
/// operations on it.
11381138
///
1139-
/// This is normally used when a HTTP upgrade request is received
1139+
/// This is normally used when an HTTP upgrade request is received
11401140
/// and the communication should continue with a different protocol.
11411141
///
11421142
/// If [writeHeaders] is `true`, the status line and [headers] will be written
@@ -1351,7 +1351,7 @@ abstract interface class HttpClient {
13511351
return overrides.createHttpClient(context);
13521352
}
13531353

1354-
/// Opens a HTTP connection.
1354+
/// Opens an HTTP connection.
13551355
///
13561356
/// The HTTP method to use is specified in [method], the server is
13571357
/// specified using [host] and [port], and the path (including
@@ -1373,7 +1373,7 @@ abstract interface class HttpClient {
13731373
String path,
13741374
);
13751375

1376-
/// Opens a HTTP connection.
1376+
/// Opens an HTTP connection.
13771377
///
13781378
/// The HTTP method is specified in [method] and the URL to use in
13791379
/// [url].
@@ -1388,7 +1388,7 @@ abstract interface class HttpClient {
13881388
/// the overall documentation for the class [HttpClient].
13891389
Future<HttpClientRequest> openUrl(String method, Uri url);
13901390

1391-
/// Opens a HTTP connection using the GET method.
1391+
/// Opens an HTTP connection using the GET method.
13921392
///
13931393
/// The server is specified using [host] and [port], and the path
13941394
/// (including a possible query) is specified using
@@ -1397,14 +1397,14 @@ abstract interface class HttpClient {
13971397
/// See [open] for details.
13981398
Future<HttpClientRequest> get(String host, int port, String path);
13991399

1400-
/// Opens a HTTP connection using the GET method.
1400+
/// Opens an HTTP connection using the GET method.
14011401
///
14021402
/// The URL to use is specified in [url].
14031403
///
14041404
/// See [openUrl] for details.
14051405
Future<HttpClientRequest> getUrl(Uri url);
14061406

1407-
/// Opens a HTTP connection using the POST method.
1407+
/// Opens an HTTP connection using the POST method.
14081408
///
14091409
/// The server is specified using [host] and [port], and the path
14101410
/// (including a possible query) is specified using
@@ -1413,67 +1413,67 @@ abstract interface class HttpClient {
14131413
/// See [open] for details.
14141414
Future<HttpClientRequest> post(String host, int port, String path);
14151415

1416-
/// Opens a HTTP connection using the POST method.
1416+
/// Opens an HTTP connection using the POST method.
14171417
///
14181418
/// The URL to use is specified in [url].
14191419
///
14201420
/// See [openUrl] for details.
14211421
Future<HttpClientRequest> postUrl(Uri url);
14221422

1423-
/// Opens a HTTP connection using the PUT method.
1423+
/// Opens an HTTP connection using the PUT method.
14241424
///
14251425
/// The server is specified using [host] and [port], and the path
14261426
/// (including a possible query) is specified using [path].
14271427
///
14281428
/// See [open] for details.
14291429
Future<HttpClientRequest> put(String host, int port, String path);
14301430

1431-
/// Opens a HTTP connection using the PUT method.
1431+
/// Opens an HTTP connection using the PUT method.
14321432
///
14331433
/// The URL to use is specified in [url].
14341434
///
14351435
/// See [openUrl] for details.
14361436
Future<HttpClientRequest> putUrl(Uri url);
14371437

1438-
/// Opens a HTTP connection using the DELETE method.
1438+
/// Opens an HTTP connection using the DELETE method.
14391439
///
14401440
/// The server is specified using [host] and [port], and the path
14411441
/// (including a possible query) is specified using [path].
14421442
///
14431443
/// See [open] for details.
14441444
Future<HttpClientRequest> delete(String host, int port, String path);
14451445

1446-
/// Opens a HTTP connection using the DELETE method.
1446+
/// Opens an HTTP connection using the DELETE method.
14471447
///
14481448
/// The URL to use is specified in [url].
14491449
///
14501450
/// See [openUrl] for details.
14511451
Future<HttpClientRequest> deleteUrl(Uri url);
14521452

1453-
/// Opens a HTTP connection using the PATCH method.
1453+
/// Opens an HTTP connection using the PATCH method.
14541454
///
14551455
/// The server is specified using [host] and [port], and the path
14561456
/// (including a possible query) is specified using [path].
14571457
///
14581458
/// See [open] for details.
14591459
Future<HttpClientRequest> patch(String host, int port, String path);
14601460

1461-
/// Opens a HTTP connection using the PATCH method.
1461+
/// Opens an HTTP connection using the PATCH method.
14621462
///
14631463
/// The URL to use is specified in [url].
14641464
///
14651465
/// See [openUrl] for details.
14661466
Future<HttpClientRequest> patchUrl(Uri url);
14671467

1468-
/// Opens a HTTP connection using the HEAD method.
1468+
/// Opens an HTTP connection using the HEAD method.
14691469
///
14701470
/// The server is specified using [host] and [port], and the path
14711471
/// (including a possible query) is specified using [path].
14721472
///
14731473
/// See [open] for details.
14741474
Future<HttpClientRequest> head(String host, int port, String path);
14751475

1476-
/// Opens a HTTP connection using the HEAD method.
1476+
/// Opens an HTTP connection using the HEAD method.
14771477
///
14781478
/// The URL to use is specified in [url].
14791479
///
@@ -1556,7 +1556,7 @@ abstract interface class HttpClient {
15561556
);
15571557

15581558
/// Sets the function used to resolve the proxy server to be used for
1559-
/// opening a HTTP connection to the specified `url`. If this
1559+
/// opening an HTTP connection to the specified `url`. If this
15601560
/// function is not set, direct connections will always be used.
15611561
///
15621562
/// The string returned by [f] must be in the format used by browser
@@ -1580,7 +1580,7 @@ abstract interface class HttpClient {
15801580
/// variables.
15811581
void set findProxy(String Function(Uri url)? f);
15821582

1583-
/// Function for resolving the proxy server to be used for a HTTP
1583+
/// Function for resolving the proxy server to be used for an HTTP
15841584
/// connection from the proxy configuration specified through
15851585
/// environment variables.
15861586
///
@@ -1674,7 +1674,7 @@ abstract interface class HttpClient {
16741674
/// with a server certificate that cannot be authenticated by any of our
16751675
/// trusted root certificates.
16761676
///
1677-
/// When an secure HTTP request if made, using this HttpClient, and the
1677+
/// When a secure HTTP request is made, using this HttpClient, and the
16781678
/// server returns a server certificate that cannot be authenticated, the
16791679
/// callback is called asynchronously with the [X509Certificate] object and
16801680
/// the server's hostname and port. If the value of [badCertificateCallback]
@@ -1987,7 +1987,7 @@ abstract interface class HttpClientResponse implements Stream<List<int>> {
19871987
/// socket is detached the HTTP client will no longer perform any
19881988
/// operations on it.
19891989
///
1990-
/// This is normally used when a HTTP upgrade is negotiated and the
1990+
/// This is normally used when an HTTP upgrade is negotiated and the
19911991
/// communication should continue with a different protocol.
19921992
Future<Socket> detachSocket();
19931993

0 commit comments

Comments
 (0)