Skip to content

Conversation

@coolreader18
Copy link
Collaborator

Description of Changes

Provides a fetch-alike API on ctx.http. I guess it could just be ctx.fetch() instead of ctx.http.fetch(), but I'm not sure if that's a good idea.

Expected complexity level and risk

2

Testing

  • Need to verify that this actually works

Base automatically changed from noa/ts-procedures to master November 24, 2025 19:45
Copy link
Contributor

@gefjon gefjon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel comfortable enough with either our V8 internals or TypeScript bindings to do an in-depth review, but I like the API design here. I appreciate the cross-language consistency of keeping HTTP-related methods in ctx.http, and also the similarity between your fetch method and the browser env's fetch function.

Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks mostly good. I'd like to request some changes below though before merging.

@coolreader18 coolreader18 added this pull request to the merge queue Nov 25, 2025
Merged via the queue into master with commit cb3ac50 Nov 25, 2025
36 of 37 checks passed
@coolreader18 coolreader18 deleted the noa/ts-http branch November 25, 2025 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants