| Index: runtime/bin/http.dart
|
| diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart
|
| index be5d21f5f3d4bb76b4320ef202eebe95ec7606cd..16dc5dc17db876b2c3603dce739757a754d88589 100644
|
| --- a/runtime/bin/http.dart
|
| +++ b/runtime/bin/http.dart
|
| @@ -555,6 +555,12 @@ interface HttpRequest default _HttpRequest {
|
| * be "1.0" or "1.1".
|
| */
|
| String get protocolVersion();
|
| +
|
| + /**
|
| + * Get information about the client connection. Returns [null] if the socket
|
| + * isn't available.
|
| + */
|
| + HttpConnectionInfo get connectionInfo();
|
| }
|
|
|
|
|
| @@ -619,6 +625,12 @@ interface HttpResponse default _HttpResponse {
|
| * and the communication should continue with a different protocol.
|
| */
|
| DetachedSocket detachSocket();
|
| +
|
| + /**
|
| + * Get information about the client connection. Returns [null] if the socket
|
| + * isn't available.
|
| + */
|
| + HttpConnectionInfo get connectionInfo();
|
| }
|
|
|
|
|
| @@ -756,6 +768,12 @@ interface HttpClientConnection {
|
| * communication should continue with a different protocol.
|
| */
|
| DetachedSocket detachSocket();
|
| +
|
| + /**
|
| + * Get information about the client connection. Returns [null] if the socket
|
| + * isn't available.
|
| + */
|
| + HttpConnectionInfo get connectionInfo();
|
| }
|
|
|
|
|
| @@ -849,6 +867,15 @@ interface HttpClientResponse default _HttpClientResponse {
|
| InputStream get inputStream();
|
| }
|
|
|
| +/**
|
| + * Connection information.
|
| + */
|
| +interface HttpConnectionInfo {
|
| + String get remoteHost();
|
| + int get remotePort();
|
| + int get localPort();
|
| +}
|
| +
|
|
|
| /**
|
| * Redirect information.
|
|
|