Permalink
Browse files

Add Response.remoteAddress()

Fixes #83.
  • Loading branch information...
zploskey committed Sep 8, 2018
1 parent 448c1b1 commit 55f4a56f6d6b89ee1a8d7ce5c85985d056fd3105
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/Response.re
@@ -27,6 +27,14 @@ external json: t => Js.Promise.t(Js.Json.t) = "";
[@bs.send]
external ok: t => bool = "";

type remoteAddress = {
.
ip: string,
port: int,
};

[@bs.send] external remoteAddress: t => remoteAddress = "";

/** A matching Request object. */
[@bs.send]
external request: t => Types.request = "";

0 comments on commit 55f4a56

Please sign in to comment.