Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
Created December 5, 2019 17:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmurphy/bde993853ac75f79b9c81f670761b5da to your computer and use it in GitHub Desktop.
Save mrmurphy/bde993853ac75f79b9c81f670761b5da to your computer and use it in GitHub Desktop.
[@bs.module] external bent('headers, 'response) : (
~method: @bs.string] [
| `GET
| `POST
| `PUT
| `DELETE
],
~format: [@bs.string] [
| `string
| `buffer
| `json
],
~status: int,
~headers: Option(Js.t('headers)),
~url: string
) => Js.Promise.t('response) = "bent";
@idkjs
Copy link

idkjs commented Dec 5, 2019

Thank you, sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment