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

Side by Side Diff: sdk/lib/io/http.dart

Issue 12380059: Fix type warnings and remove unimplemented stuff from HttpClient interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 /** 7 /**
8 * HTTP status codes. 8 * HTTP status codes.
9 */ 9 */
10 abstract class HttpStatus { 10 abstract class HttpStatus {
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 */ 364 */
365 int port; 365 int port;
366 366
367 /** 367 /**
368 * Gets and sets the content type. Note that the content type in the 368 * Gets and sets the content type. Note that the content type in the
369 * header will only be updated if this field is set 369 * header will only be updated if this field is set
370 * directly. Mutating the returned current value will have no 370 * directly. Mutating the returned current value will have no
371 * effect. 371 * effect.
372 */ 372 */
373 ContentType contentType; 373 ContentType contentType;
374
375 /**
376 * Gets and sets the content length header value.
377 */
378 int contentLength;
379
380 /**
381 * Gets and sets the persistent connection header value.
382 */
383 bool persistentConnection;
374 } 384 }
375 385
376 386
377 /** 387 /**
378 * Representation of a header value in the form: 388 * Representation of a header value in the form:
379 * 389 *
380 * [:value; parameter1=value1; parameter2=value2:] 390 * [:value; parameter1=value1; parameter2=value2:]
381 * 391 *
382 * [HeaderValue] can be used to conveniently build and parse header 392 * [HeaderValue] can be used to conveniently build and parse header
383 * values on this form. 393 * values on this form.
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 * continue normally. 810 * continue normally.
801 */ 811 */
802 set authenticate(Future<bool> f(Uri url, String scheme, String realm)); 812 set authenticate(Future<bool> f(Uri url, String scheme, String realm));
803 813
804 /** 814 /**
805 * Add credentials to be used for authorizing HTTP requests. 815 * Add credentials to be used for authorizing HTTP requests.
806 */ 816 */
807 void addCredentials(Uri url, String realm, HttpClientCredentials credentials); 817 void addCredentials(Uri url, String realm, HttpClientCredentials credentials);
808 818
809 /** 819 /**
810 * If [sendClientCertificate] is set to true, authenticate with a client
811 * certificate when connecting with an HTTPS server that requests one.
812 * Select the certificate from the certificate database that matches
813 * the authorities listed by the HTTPS server as valid.
814 * If [clientCertificate] is set, send the certificate with that nickname
815 * instead.
816 */
817 set sendClientCertificate(bool send);
818
819 /**
820 * If [clientCertificate] is non-null and [sendClientCertificate] is true,
821 * use [clientCertificate] to select the certificate to send from the
822 * certificate database, looking it up by its nickname.
823 */
824 set clientCertificate(String nickname);
825
826 /**
827 * Sets the function used to resolve the proxy server to be used for 820 * Sets the function used to resolve the proxy server to be used for
828 * opening a HTTP connection to the specified [url]. If this 821 * opening a HTTP connection to the specified [url]. If this
829 * function is not set, direct connections will always be used. 822 * function is not set, direct connections will always be used.
830 * 823 *
831 * The string returned by [f] must be in the format used by browser 824 * The string returned by [f] must be in the format used by browser
832 * PAC (proxy auto-config) scripts. That is either 825 * PAC (proxy auto-config) scripts. That is either
833 * 826 *
834 * "DIRECT" 827 * "DIRECT"
835 * 828 *
836 * for using a direct connection or 829 * for using a direct connection or
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 class RedirectLimitExceededException extends RedirectException { 1118 class RedirectLimitExceededException extends RedirectException {
1126 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1119 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1127 : super("Redirect limit exceeded", redirects); 1120 : super("Redirect limit exceeded", redirects);
1128 } 1121 }
1129 1122
1130 1123
1131 class RedirectLoopException extends RedirectException { 1124 class RedirectLoopException extends RedirectException {
1132 const RedirectLoopException(List<RedirectInfo> redirects) 1125 const RedirectLoopException(List<RedirectInfo> redirects)
1133 : super("Redirect loop detected", redirects); 1126 : super("Redirect loop detected", redirects);
1134 } 1127 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698