Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CurlyFunction

Hierarchy

  • {}
    • CurlyFunction

Callable

  • EXPERIMENTAL This API can change between minor releases

    Async wrapper around the Curl class.

    It's also possible to request using a specific http verb directly by using curl.<http-verb>(url: string, options?: CurlyOptions), like:

    curly.get('https://www.google.com')

    Type parameters

    • ResultData: any = any

      You can use this to specify the type of the data property returned from this call.

    Parameters

    Returns Promise<CurlyResult<ResultData>>

Index

Properties

create

create: (defaultOptions?: CurlyOptions) => CurlyFunction

EXPERIMENTAL This API can change between minor releases

This returns a new curly with the specified options set by default.

Type declaration

defaultResponseBodyParsers

defaultResponseBodyParsers: CurlyResponseBodyParsersProperty

These are the default response body parsers to be used.

By default there are parsers for the following:

  • application/json
  • text/*
  • *

Generated using TypeDoc