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

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

Issue 26973004: Preserve '\' in filenames for uploads, as Windows/IE contains them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/http_server/test/http_multipart_test.dart ('k') | sdk/lib/io/http_headers.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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 */ 521 */
522 factory HeaderValue([String value = "", Map<String, String> parameters]) { 522 factory HeaderValue([String value = "", Map<String, String> parameters]) {
523 return new _HeaderValue(value, parameters); 523 return new _HeaderValue(value, parameters);
524 } 524 }
525 525
526 /** 526 /**
527 * Creates a new header value object from parsing a header value 527 * Creates a new header value object from parsing a header value
528 * string with both value and optional parameters. 528 * string with both value and optional parameters.
529 */ 529 */
530 static HeaderValue parse(String value, 530 static HeaderValue parse(String value,
531 {String parameterSeparator: ";"}) { 531 {String parameterSeparator: ";",
532 return _HeaderValue.parse(value, parameterSeparator: parameterSeparator); 532 bool preserveBackslash: false}) {
533 return _HeaderValue.parse(value,
534 parameterSeparator: parameterSeparator,
535 preserveBackslash: preserveBackslash);
533 } 536 }
534 537
535 /** 538 /**
536 * Gets the header value. 539 * Gets the header value.
537 */ 540 */
538 String get value; 541 String get value;
539 542
540 /** 543 /**
541 * Gets the map of parameters. 544 * Gets the map of parameters.
542 * 545 *
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 final String message; 1597 final String message;
1595 final List<RedirectInfo> redirects; 1598 final List<RedirectInfo> redirects;
1596 1599
1597 const RedirectException(String this.message, 1600 const RedirectException(String this.message,
1598 List<RedirectInfo> this.redirects); 1601 List<RedirectInfo> this.redirects);
1599 1602
1600 String toString() => "RedirectException: $message"; 1603 String toString() => "RedirectException: $message";
1601 1604
1602 Uri get uri => redirects.last.location; 1605 Uri get uri => redirects.last.location;
1603 } 1606 }
OLDNEW
« no previous file with comments | « pkg/http_server/test/http_multipart_test.dart ('k') | sdk/lib/io/http_headers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698