Skip to content

Accept Response and Promise<Response> as transformRequest return#1250

Merged
ahocevar merged 1 commit intomainfrom
transformrequest-response
Feb 10, 2025
Merged

Accept Response and Promise<Response> as transformRequest return#1250
ahocevar merged 1 commit intomainfrom
transformrequest-response

Conversation

@ahocevar
Copy link
Member

This pull request adds a huge improvement to the transformRequest() option: the function may now also return a Response or a Promise resolving to a Response. This means: no more Object URLs for anything that can be fetched! The modified pmtiles.js example shows how to make use of it.

@ahocevar ahocevar merged commit 66109b7 into main Feb 10, 2025
1 check passed
@ahocevar ahocevar deleted the transformrequest-response branch February 10, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant