Files
lincodex/api/core/components/headers.yml
T

56 lines
1.7 KiB
YAML

ETag:
description: >-
Strong entity tag of the returned resource version. Send it back in
If-Match to change this version.
required: true
schema:
type: string
minLength: 3
maxLength: 130
pattern: '^"[A-Za-z0-9._~-]{1,128}"$'
example: '"v7"'
RetryAfter:
description: Number of seconds to wait before retrying the request.
schema:
type: integer
format: int32
minimum: 0
maximum: 86400
example: 30
SessionCookieSet:
description: >-
Sets the session cookie `__Host-lincodex_session` with an opaque random
value and the attributes `Path=/; Secure; HttpOnly; SameSite=Strict` and
no Domain. The `__Host-` prefix makes the browser reject the cookie
without Secure and Path=/ or with a Domain. Max-Age equals the remaining
absolute session lifetime. The value is never readable by scripts or present in a
body.
required: true
schema:
type: string
minLength: 1
maxLength: 4096
pattern: "^__Host-lincodex_session="
example: __Host-lincodex_session=opaque-session-value; Path=/; Max-Age=604800; Secure; HttpOnly; SameSite=Strict
SessionCookieCleared:
description: >-
Removes the session cookie with an empty value, `Max-Age=0`, and the
same attributes it was set with.
required: true
schema:
type: string
minLength: 1
maxLength: 4096
pattern: "^__Host-lincodex_session="
example: __Host-lincodex_session=; Path=/; Max-Age=0; Secure; HttpOnly; SameSite=Strict
CacheControlNoStore:
description: >-
`no-store`: the response carries account or session data that browsers
and intermediaries must not keep.
required: true
schema:
type: string
enum:
- no-store
example: no-store