mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
[DOCS]: http 组件支持返回 cookie 的接口吗 #271
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cutelitchi on GitHub (Nov 23, 2025).
Type of Documentation Change
Other
Documentation Page URL or Path
No response
Current Content
请问一下,http 组件支持返回 cookie 的接口吗
Suggested Changes
希望可以确认一下。
Reason for Change
No response
Code of Conduct
@dosubot[bot] commented on GitHub (Nov 23, 2025):
Hi @cutelitchi! I'm Dosu and I’m helping the dify-docs team.
Dify 的 HTTP 组件会把 HTTP 响应的所有 headers(包括 Set-Cookie)作为 outputs 返回,所以你可以通过 headers 字段获取服务器返回的 cookie 信息。不过,目前没有专门针对 cookie 的独立接口或结构,所有 cookie 都作为 headers 的一部分暴露。例如:
你可以在 headers 里查找 Set-Cookie 字段来获取 cookie 信息。具体实现可参考 源码 和 Response 类。
如果文档没有明确说明,建议补充说明 headers 字段包含所有响应头(包括 cookie)。
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other