Permalink
Browse files

Add Request.isNavigationRequest()

New in puppeteer 1.5.
  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent c6a63ad commit deb635e72facbe22ba295cdcc293c7e8e472b278
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Request.re
@@ -80,6 +80,8 @@ external frame : t => option(FrameBase.t) = "";

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

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

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

[@bs.send] [@bs.return nullable] external postData : t => option(string) = "";
@@ -123,6 +125,7 @@ type respondOptions = {
"status": Js.undefined(float),
"headers": Js.undefined(headers),
"contentType": Js.undefined(string),
/* TODO: body can also be a string */
"body": Js.undefined(Js_typed_array.ArrayBuffer.t),
};

0 comments on commit deb635e

Please sign in to comment.