Enum

pending-response-kind

Control for under which conditions an operation should be applied to the result of a pending-response.

This is primarily useful for allowing consumers of send-downstream-pending to control whether a requested header change (insert-header-pending et al.) are applied to only the actual origin response, the synthetic 5XX response generated in lieu of an error-with-detail, or both.

enum pending-response-kind {
  any,
  response,
  error,
}

Cases

CaseDescription
any

Apply the queued change to the response sent downstream, regardless of whether it originally came from the origin or was a synthetic 5XX response.

response

Only apply the queued change to an actual response to the request.

error

Only apply the queued change to the synthetic response made when the request fails.