Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add agent option usage #173

Merged
merged 4 commits into from
Jan 12, 2023
Merged

docs: add agent option usage #173

merged 4 commits into from
Jan 12, 2023

Conversation

yuyinws
Copy link
Contributor

@yuyinws yuyinws commented Nov 22, 2022

add agent option usage on docs. close #161

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@nozomuikuta nozomuikuta merged commit 93d07fe into unjs:main Jan 12, 2023
@@ -218,6 +218,18 @@ await ofetch('/movies', {
})
```

## 💡 Adding HTTP(S) Agent

If you need use HTTP(S) Agent, can add `agent` option with `https-proxy-agent`:
Copy link
Member

Choose a reason for hiding this comment

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

We need to add a note that this is for Node.js only.

Copy link
Member

Choose a reason for hiding this comment

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

Follow up: #202

Copy link
Contributor

Choose a reason for hiding this comment

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

We need to add a note that this is for Node.js only.

By this you mean server side only right? This should work in nuxt /server right?

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.

HTTP(S) Proxy | Agent With OhMyFetch
4 participants