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

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

Issue 25010004: Add .address to [Raw]ServerSocket and HttpServer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove 'host' arg from BarbackServer constructor. 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 | « sdk/lib/_internal/pub/lib/src/barback/server.dart ('k') | 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 Future close(); 179 Future close();
180 180
181 /** 181 /**
182 * Returns the port that the server is listening on. This can be 182 * Returns the port that the server is listening on. This can be
183 * used to get the actual port used when a value of 0 for [:port:] is 183 * used to get the actual port used when a value of 0 for [:port:] is
184 * specified in the [bind] or [bindSecure] call. 184 * specified in the [bind] or [bindSecure] call.
185 */ 185 */
186 int get port; 186 int get port;
187 187
188 /** 188 /**
189 * Returns the address that the server is listening on. This can be
190 * used to get the actual address used, when the address is fetched by
191 * a lookup from a hostname.
192 */
193 InternetAddress get address;
194
195 /**
189 * Sets the timeout, in seconds, for sessions of this [HttpServer]. 196 * Sets the timeout, in seconds, for sessions of this [HttpServer].
190 * The default timeout is 20 minutes. 197 * The default timeout is 20 minutes.
191 */ 198 */
192 set sessionTimeout(int timeout); 199 set sessionTimeout(int timeout);
193 200
194 /** 201 /**
195 * Returns an [HttpConnectionsInfo] object summarizing the number of 202 * Returns an [HttpConnectionsInfo] object summarizing the number of
196 * current connections handled by the server. 203 * current connections handled by the server.
197 */ 204 */
198 HttpConnectionsInfo connectionsInfo(); 205 HttpConnectionsInfo connectionsInfo();
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 final String message; 1594 final String message;
1588 final List<RedirectInfo> redirects; 1595 final List<RedirectInfo> redirects;
1589 1596
1590 const RedirectException(String this.message, 1597 const RedirectException(String this.message,
1591 List<RedirectInfo> this.redirects); 1598 List<RedirectInfo> this.redirects);
1592 1599
1593 String toString() => "RedirectException: $message"; 1600 String toString() => "RedirectException: $message";
1594 1601
1595 Uri get uri => redirects.last.location; 1602 Uri get uri => redirects.last.location;
1596 } 1603 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/barback/server.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698