Web APIs
GitBook's Runtime API allows you to use a few Web APIs directly out of the box.
fetch()
fetch()
Integrations communicate with the outside world over HTTP. Your integration can send async HTTP requests through HTTP Fetch. See the MDN docs to learn more.
Example:
Response
Response
The Response
interface of the Fetch API represents the response to a request. See the MDN docs to learn more.
Example:
Request
Request
The Request
interface of the Fetch API represents a resource request. See the MDN docs to learn more.
Example:
URL
URL
The URL()
constructor returns a newly created URL
object representing the URL defined by the parameters. See the MDN docs to learn more.
Example:
URLSearchParams
URLSearchParams
The URLSearchParams
interface defines utility methods to work with the query string of a URL. See the MDN docs to learn more.
Last updated