Permalink
Browse files

Add Response.statusText()

Fixes #86.
  • Loading branch information...
zploskey committed Sep 8, 2018
1 parent 955cf9a commit 448c1b1905c7cdaa8db62f9e3012046990949216
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Response.re
@@ -39,6 +39,10 @@ external securityDetails: t => option(SecurityDetails.t) = "";
[@bs.send]
external status: t => int = "";

/** The status text of the response. Typically success is "OK". */
[@bs.send]
external statusText: t => string = "";

/** Promise which resolves to the text of the response body. */
[@bs.send]
external text: t => Js.Promise.t(string) = "";

0 comments on commit 448c1b1

Please sign in to comment.