JakeChampion opened a new pull request, #13820:
URL: https://github.com/apache/trafficserver/pull/13820

   The HTTP `QUERY` method 
([draft-ietf-httpbis-safe-method-w-body](https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/))
 is currently treated as an extension method. As a result:
   
   - it is tunneled rather than handled like the other standard methods
   - it cannot be named in `ip_allow.yaml` or `remap.config` ACLs
   - it is not counted in the per-method request stats
   
   This change registers `QUERY` in the well-known token table and gives it the 
semantics the draft defines: it is **safe**, **idempotent**, and **carries 
request content**.
   
   ### Retry behavior
   
   Because `QUERY` is safe, it now takes the retry-after-bytes-sent path that 
`GET` and `HEAD` use.
   
   Unlike those methods it has a body, so after the request has been sent a 
retry is only allowed if the request body was buffered and can be replayed. 
Otherwise it is handled like an unsafe method.
   
   ### Not in this PR
   
   Caching of `QUERY` responses is left for a follow-up, since it needs the 
request body to be part of the cache key.
   
   The plugin API and logstats changes will follow as separate PRs - if we want 
them included in this PR, let me know.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to