Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
Created December 5, 2019 17:57
Show Gist options
  • Select an option

  • Save mrmurphy/bde993853ac75f79b9c81f670761b5da to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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