Oihana PHP Enums

ApiHeaderTrait

REST / API lifecycle HTTP header names.

Mixed into HttpHeader.

Tags
author

Marc Alcaraz (ekameleon)

since
1.1.0

Table of Contents

Constants

IDEMPOTENCY_KEY  : string = 'Idempotency-Key'
`Idempotency-Key` — Client-generated key making an unsafe request idempotent (IETF draft, de-facto).
IDEMPOTENT_REPLAYED  : string = 'Idempotent-Replayed'
`Idempotent-Replayed` — Set to `true` on a response replayed for a known `Idempotency-Key` instead of re-running the request (de-facto).
PREFER  : string = 'Prefer'
`Prefer` — Preferences for how the server should handle the request (RFC 7240).
PREFERENCE_APPLIED  : string = 'Preference-Applied'
`Preference-Applied` — Indicates which `Prefer` preferences were applied (RFC 7240).
SUNSET  : string = 'Sunset'
`Sunset` — Date/time at which the resource is expected to become unresponsive (RFC 8594).

Constants

IDEMPOTENCY_KEY

`Idempotency-Key` — Client-generated key making an unsafe request idempotent (IETF draft, de-facto).

public string IDEMPOTENCY_KEY = 'Idempotency-Key'

IDEMPOTENT_REPLAYED

`Idempotent-Replayed` — Set to `true` on a response replayed for a known `Idempotency-Key` instead of re-running the request (de-facto).

public string IDEMPOTENT_REPLAYED = 'Idempotent-Replayed'

PREFER

`Prefer` — Preferences for how the server should handle the request (RFC 7240).

public string PREFER = 'Prefer'

PREFERENCE_APPLIED

`Preference-Applied` — Indicates which `Prefer` preferences were applied (RFC 7240).

public string PREFERENCE_APPLIED = 'Preference-Applied'

SUNSET

`Sunset` — Date/time at which the resource is expected to become unresponsive (RFC 8594).

public string SUNSET = 'Sunset'
On this page

Search results