GET
Edit this pageGET
helps to create a server function which is accessed via an HTTP GET request.
When this function is called, arguments are serialized into the URL, thus allowing the use of HTTP cache-control headers.
For example, GET
can be used to make a streaming promise with a 60 second cache life:
Parameters
GET<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => ReturnType<T>