A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.netlify.com/functions/api/ below:

Serverless Functions API reference | Netlify Docs

Serverless Functions API reference

This page provides a full reference of the Netlify Serverless Functions API.

Upgrading from Lambda compatibility mode

If you’re using the older Lambda compatibility mode for functions, consider upgrading to get access to the full context object below. Learn more.

The Context object exposes the following properties:

An object containing Netlify team account information. The id property in the object holds the unique ID of the team that the site and function belong to.

A simplified interface for reading and storing cookies:

Setting cookies across subdomains requires a custom domain

Since the netlify.app domain is used by many customers, it is listed in the Mozilla Foundation’s Public Suffix List, which prevents setting cookies across subdomains.

An object containing Netlify deploy information with the following property:

An object containing geolocation data for the client with the following properties:

A string containing the client IP address.

An object containing the parameters set for the function’s path in the configuration object and the values they receive from the incoming request URL.

For example, for a function configured to run at /pets/:name, the params value for a request to /pets/boo will be {"name":"boo"}.

To access the query string, use request.url instead.

A string containing the Netlify request ID.

For example, 01FDWR77JMF2DA1CHF5YA6H07C.

An object containing server metadata with the following property:

An object containing Netlify site metadata with the following properties:

context.waitUntil() is a function that implements the ExtendableEvent.waitUntil standard. It allows you to extend the function’s execution until the given Promise it completed, without blocking the response to the client from being sent.

You can use it to perform any tasks after the response is sent, such as emitting analytics events or dispatching logs.

Usage notes:

This global object exposes the following properties:

The Netlify-specific context object.

This property is available within the scope of the function handler. If accessed from outside the handler, it returns null.

An object providing access to environment variables with the following properties:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4