Skip to content

Commit 7ec678f

Browse files
committed
update: add eventsource note for useSSE
1 parent 96cf524 commit 7ec678f

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

docs/tutorial/03-client/01-strategy/14-use-sse.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ use hook
1313

1414
> Before using extension hooks, make sure you are familiar with the basic usage of alova.
1515
16-
A use hook that can automatically retry a request failure, you can use it for important requests.
16+
This hook is implemented using the `EventSource` API.
17+
18+
::: warning note
19+
20+
When you are not to be used in useSSE add custom header, because the standard [does not contain the behavior](https://stackoverflow.com/a/36226251)
21+
22+
:::
1723

1824
## Features
1925

i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/03-client/01-strategy/14-use-sse.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ use hook
1515
1616
通过 Server-sent Events(SSE)请求,内部使用`EventSource`实现。
1717

18+
:::warning 注意
19+
20+
你不可以在使用 useSSE 时添加自定义 header,因为该标准[不包含这一行为](https://stackoverflow.com/a/36226251)
21+
22+
:::
23+
1824
## 特性
1925

2026
- 更加简洁易用的使用方式;

i18n/zh-CN/docusaurus-plugin-content-docs/version-v2/tutorial/05-strategy/13-useSSE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ use hook
1515
1616
通过 Server-sent Events(SSE)请求,内部使用`EventSource`实现。
1717

18+
:::warning 注意
19+
20+
你不可以在使用 useSSE 时添加自定义 header,因为该标准[不包含这一行为](https://stackoverflow.com/a/36226251)
21+
22+
:::
23+
1824
## 特性
1925

2026
- 更加简洁易用的使用方式;

versioned_docs/version-v2/tutorial/05-strategy/13-useSSE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ use hook
1313

1414
> Before using extension hooks, make sure you are familiar with the basic usage of alova.
1515
16-
A use hook that can automatically retry a request failure, you can use it for important requests.
16+
This hook is implemented using the `EventSource` API.
17+
18+
::: warning note
19+
20+
When you are not to be used in useSSE add custom header, because the standard [does not contain the behavior](https://stackoverflow.com/a/36226251)
21+
22+
:::
1723

1824
## Features
1925

0 commit comments

Comments
 (0)