Skip to content

Conversation

@jasnell
Copy link
Contributor

@jasnell jasnell commented Jul 18, 2025

Expand and improve the node:http docs.

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

jasnell added 2 commits July 18, 2025 12:43
Move the `Agent` part of the docs to the end since it's only
a stub impl and really isn't all that useful. Also improve the
example to show how one might actually use it.
@github-actions github-actions bot added the product:workers Related to Workers product label Jul 18, 2025
@jasnell jasnell changed the title Improve Agent example, move to end Improve and extend node:http docs Jul 18, 2025
[`fetch` API](https://developers.cloudflare.com/workers/runtime-apis/fetch/)
and is therefore subject to the same [limits](https://developers.cloudflare.com/workers/platform/limits/).

As shown in the example above, it is necessary to arrange for requests to be correctly
Copy link
Contributor

Choose a reason for hiding this comment

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

I think its probably worth calling out "Script will never generate a response" here by name and linking to that section.

If I'm reading this right, this is to get out ahead of people (like me) who didn't set up the callbacks properly and hit that. I think dropping the name here might help with SEO for this section and being able to debug that issue if it comes up w this.

@jasnell jasnell merged commit 3a31ac0 into cloudflare:production Aug 11, 2025
5 checks passed
thomasgauvin pushed a commit that referenced this pull request Aug 15, 2025
* Improve Agent example, move to end

Move the `Agent` part of the docs to the end since it's only
a stub impl and really isn't all that useful. Also improve the
example to show how one might actually use it.

* Improve and expand node:http docs, examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants