fastly / js-compute-runtime

JavaScript SDK and runtime for building Fastly Compute applications
https://developer.fastly.com/learning/compute/javascript/
Apache License 2.0
193 stars 26 forks source link

Dynamic backends default timeouts #783

Closed guybedford closed 1 month ago

guybedford commented 1 month ago

When enabling dynamic backends, it would be nice to be able to also provide default values for the timeouts to be associated with the dynamic backends.

Perhaps we can extend the API of the form:

allowDynamicBackends({
    connectTimeout?: number;
    firstByteTimeout?: number;
    betweenBytesTimeout?: number;
});