You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support Prefer: handling=strict to enforce a given mode (respond-async or wait)
For example, using Prefer: handling=strict, wait=5 and failing to complete the process synchronously within the allocated wait time would result in an error rather than switching to asynchronous execution automatically.
If Prefer: wait=X, handling=strict cannot be respected (since the server is not permitted to fall back to async by strict within the wait time), return "408 Request Timeout".
For the opposite case, where Prefer: respond-async, handling=strict cannot be respected, respond with "412 Precondition Failed".
Support Prefer: handling=lenient (default when omitted), that allows automatically switching to async after sync if within wait and respond-async provided simultaneously
Ensure that allowed execution mode by the process are still respected.
If they mismatch, directly respond "400 Bad Request".
Update documentation with Prefer: handling=strict that can be used to enforce (rather than preference only)
Description
Support
Prefer: handling=strict
to enforce a given mode (respond-async
orwait
)For example, using
Prefer: handling=strict, wait=5
and failing to complete the process synchronously within the allocatedwait
time would result in an error rather than switching to asynchronous execution automatically.If
Prefer: wait=X, handling=strict
cannot be respected (since the server is not permitted to fall back to async bystrict
within the wait time), return "408 Request Timeout".For the opposite case, where
Prefer: respond-async, handling=strict
cannot be respected, respond with "412 Precondition Failed".Support
Prefer: handling=lenient
(default when omitted), that allows automatically switching to async after sync if withinwait
andrespond-async
provided simultaneouslyEnsure that allowed execution mode by the process are still respected.
If they mismatch, directly respond "400 Bad Request".
Update documentation with
Prefer: handling=strict
that can be used to enforce (rather than preference only)weaver/docs/source/processes.rst
Lines 670 to 675 in 6f2ac40
References
The text was updated successfully, but these errors were encountered: