Skip to content

Commit a92c10c

Browse files
i18n(ko-KR): update api-reference.mdx (#13851)
Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>
1 parent dedbbf4 commit a92c10c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/content/docs/ko/reference/api-reference.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,16 @@ const { data, error } = await Astro.callAction(actions.logout, { userId: '123' }
719719

720720
응답과 함께 전송될 `Set-Cookie`의 헤더 값을 가져옵니다.
721721

722+
##### `cookies.consume()`
723+
724+
<p>
725+
726+
**타입:** `() => Iterator<string>`<br />
727+
<Since v="6.3.0" />
728+
</p>
729+
730+
쿠키를 사용된 것으로 표시하고 [`cookies.headers()`](#cookiesheaders)와 유사하게 `Set-Cookie` 헤더 값을 반환합니다. `consume()`을 호출한 후에는 쿠키 헤더가 이미 브라우저로 전송되었으므로, 이후의 모든 `cookies.set()` 호출은 경고를 기록합니다. 이는 쿠키가 응답에 한 번만 직렬화되도록 보장하기 위해 어댑터에서 내부적으로 사용됩니다.
731+
722732
#### `AstroCookie` 타입
723733

724734
`Astro.cookies.get()`을 통해 쿠키를 가져올 때 반환되는 타입입니다. 다음과 같은 속성을 가집니다:

0 commit comments

Comments
 (0)