Skip to content

update request handling in resolveHttpResponse to follow Fetch API #1853

Closed

Description

@sachinraja

follow up for #1852

We should change the input to resolveHTTPResponse to accept Fetch API objects by default. All other handlers should then be updated to map to the Fetch API.

Right now the Fetch adapter has to adapt objects to what tRPC accepts:

const req: HTTPRequest = {
query: url.searchParams,
method: opts.req.method,
headers: Object.fromEntries(opts.req.headers),
body: await opts.req.text(),
};

TRP-66

Activity

  1. moved this to 🤔 Maybe / Nice to have in Roadmap and prioritieson May 3, 2022
  2. moved this from 🤔 Maybe / Nice to have to Nice to haves - ready to work on & prioritized in Roadmap and prioritieson Oct 20, 2022
  3. moved this to Ready to work on in Roadmap and prioritieson Nov 27, 2022
  4. changed the title [-]update request handling in resolveHttpResponse to follow Fetch API[/-] [+][TRP-66] update request handling in resolveHttpResponse to follow Fetch API[/+] on May 25, 2023
  5. changed the title [-][TRP-66] update request handling in resolveHttpResponse to follow Fetch API[/-] [+]update request handling in resolveHttpResponse to follow Fetch API[/+] on May 25, 2023
  6. linked a pull request that will close this issueFeat: Streaming #4960on Oct 26, 2023
  7. moved this from Ready to work on (Prioritized) to ✅ Done in Roadmap and prioritieson Apr 30, 2024
  8. github-actions commented on May 2, 2024

    @github-actions
    Contributor

    This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.

  9. locked as resolved and limited conversation to collaborators on May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions