the as-fetch Request object to fetch.
the config object to apply to the fetch request.
FastlyPendingUpstreamRequest for the fetched resource.
Function to get the IP Address of the client who sent the downstream request.
This function returns an array buffer, which will have a byteLength
of
4 if IPv4, or 16 if IPv6.
ArrayBuffer - A byte buffer of the IPv4 or IPv6 address.
Function to get the IP Address of the client who sent the downstream request.
string - A string representation of the IPv4 or IPv6 address.
Function to get Geolocation for an IP Address using the Fastly API.
FastlyGeolocation - Object representing the geolocation of the IP Address.
Create a logging endpoint as a part of the Fetchly endpoint.
Name of the endpoint to log to.
LogEndpoint for the endpoint name.
Send a response back downstream to the client. This is meant for sending a completed response. For streaming a response, use {@linkcode Fetchly.respondWithStreaming}
The as-fetch response object representing what to respond with
Send a response back down to the client and return a stream to continue writing to the body. If you don't need to stream the response, use {@linkcode Fetchly.respondWith}
The as-fetch
Response
object representing what to respond with.
WriteableBodyStream so that you can continue writing to the body.
Generated using TypeDoc
Send a an external request to fetch a resource. Useful for making upstream requests to a backend.