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

Side by Side Diff: runtime/bin/http.dart

Issue 10911120: Cleanup and fixes to some dart:io files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | runtime/bin/http_parser.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * HTTP status codes. 6 * HTTP status codes.
7 */ 7 */
8 interface HttpStatus { 8 interface HttpStatus {
9 static const int CONTINUE = 100; 9 static const int CONTINUE = 100;
10 static const int SWITCHING_PROTOCOLS = 101; 10 static const int SWITCHING_PROTOCOLS = 101;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 CONNECTION, 175 CONNECTION,
176 DATE, 176 DATE,
177 PRAGMA, 177 PRAGMA,
178 TRAILER, 178 TRAILER,
179 TRANSFER_ENCODING, 179 TRANSFER_ENCODING,
180 UPGRADE, 180 UPGRADE,
181 VIA, 181 VIA,
182 WARNING]; 182 WARNING];
183 183
184 static const ENTITY_HEADERS = const [ALLOW, 184 static const ENTITY_HEADERS = const [ALLOW,
185 CONTENT-ENCODING, 185 CONTENT_ENCODING,
186 CONTENT-LANGUAGE, 186 CONTENT_LANGUAGE,
187 CONTENT-LENGTH, 187 CONTENT_LENGTH,
188 CONTENT-LOCATION, 188 CONTENT_LOCATION,
189 CONTENT-MD5, 189 CONTENT_MD5,
190 CONTENT-RANGE, 190 CONTENT_RANGE,
191 CONTENT-TYPE, 191 CONTENT_TYPE,
192 EXPIRES, 192 EXPIRES,
193 LAST-MODIFIED]; 193 LAST_MODIFIED];
194 194
195 195
196 static const RESPONSE_HEADERS = const [ACCEPT-RANGES, 196 static const RESPONSE_HEADERS = const [ACCEPT_RANGES,
197 AGE, 197 AGE,
198 ETAG, 198 ETAG,
199 LOCATION, 199 LOCATION,
200 PROXY-AUTHENTICATE, 200 PROXY_AUTHENTICATE,
201 RETRY-AFTER, 201 RETRY_AFTER,
202 SERVER, 202 SERVER,
203 VARY, 203 VARY,
204 WWW-AUTHENTICATE]; 204 WWW_AUTHENTICATE];
205 205
206 static const REQUEST_HEADERS = const [ACCEPT, 206 static const REQUEST_HEADERS = const [ACCEPT,
207 ACCEPT-CHARSET, 207 ACCEPT_CHARSET,
208 ACCEPT-ENCODING, 208 ACCEPT_ENCODING,
209 ACCEPT-LANGUAGE, 209 ACCEPT_LANGUAGE,
210 AUTHORIZATION, 210 AUTHORIZATION,
211 EXPECT, 211 EXPECT,
212 FROM, 212 FROM,
213 HOST, 213 HOST,
214 IF-MATCH, 214 IF_MATCH,
215 IF-MODIFIED-SINCE, 215 IF_MODIFIED_SINCE,
216 IF-NONE-MATCH, 216 IF_NONE_MATCH,
217 IF-RANGE, 217 IF_RANGE,
218 IF-UNMODIFIED-SINCE, 218 IF_UNMODIFIED_SINCE,
219 MAX-FORWARDS, 219 MAX_FORWARDS,
220 PROXY-AUTHORIZATION, 220 PROXY_AUTHORIZATION,
221 RANGE, 221 RANGE,
222 REFERER, 222 REFERER,
223 TE, 223 TE,
224 USER-AGENT]; 224 USER_AGENT];
225 225
226 /** 226 /**
227 * Returns the list of values for the header named [name]. If there 227 * Returns the list of values for the header named [name]. If there
228 * is no headers with the provided name [:null:] will be returned. 228 * is no headers with the provided name [:null:] will be returned.
229 */ 229 */
230 List<String> operator[](String name); 230 List<String> operator[](String name);
231 231
232 /** 232 /**
233 * Convenience method for the value for a single values header. If 233 * Convenience method for the value for a single values header. If
234 * there is no header with the provided name [:null:] will be 234 * there is no header with the provided name [:null:] will be
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 class RedirectLimitExceededException extends RedirectException { 934 class RedirectLimitExceededException extends RedirectException {
935 const RedirectLimitExceededException(List<RedirectInfo> redirects) 935 const RedirectLimitExceededException(List<RedirectInfo> redirects)
936 : super("Redirect limit exceeded", redirects); 936 : super("Redirect limit exceeded", redirects);
937 } 937 }
938 938
939 939
940 class RedirectLoopException extends RedirectException { 940 class RedirectLoopException extends RedirectException {
941 const RedirectLoopException(List<RedirectInfo> redirects) 941 const RedirectLoopException(List<RedirectInfo> redirects)
942 : super("Redirect loop detected", redirects); 942 : super("Redirect loop detected", redirects);
943 } 943 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/http_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698