Options
All
  • Public
  • Public/Protected
  • All
Menu

Inspired by the Axios typings, since that is what Stoplight generally uses under the hood.

Type parameters

  • T

Hierarchy

  • IHttpRequest

Index

Properties

baseUrl

baseUrl: string

baseUrl will be prepended to url unless url is absolute.

Optional body

body: T

headers

headers: HttpNameValue

method

method: HttpMethod

query

url

url: string

Can be relative or absolute. If relative, baseUrl must also be set.