Skip to content

feat(netlify-api): read response headers such as Link through onResponse - #266

Merged
sferarc-hq[bot] merged 1 commit into
mainfrom
feat/netlify-response-headers
Nov 2, 2026
Merged

sferarc-hq[bot] merged 1 commit into
mainfrom
feat/netlify-response-headers

Conversation

@sferarc-hq

@sferarc-hq sferarc-hq Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Closes #265

Adds the onResponse call option from vercel-api-js, cloudflare-api-js and keycloak-api to the netlify-api fetcher, so a caller can read the Link header Netlify pages its lists with. Works from client.api, request() and Effect calls.

Netlify pages its lists with page and per_page and links the other
pages in a Link header, which a netlify-api caller could not read since
a call resolves to the parsed body only. The fetcher now takes the same
onResponse call option as vercel-api-js, cloudflare-api-js and
keycloak-api, from the Promise client and from Effect calls.

Closes #265
@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openapi-clients Building Building Preview Nov 2, 2026 8:05am UTC

Request Review

@sferarc-hq
sferarc-hq Bot enabled auto-merge (squash) November 2, 2026 08:06
@sferarc-hq
sferarc-hq Bot merged commit a0234ee into main Nov 2, 2026
4 of 5 checks passed
@sferarc-hq
sferarc-hq Bot deleted the feat/netlify-response-headers branch November 2, 2026 08:13

This branch was successfully deployed

1 active deployment
Preview — a498e143 Deployed Nov 2, 2026 by vercel[bot]
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.

Let netlify-api callers read response headers such as Link

0 participants