bzp2010 opened a new pull request, #12526:
URL: https://github.com/apache/apisix/pull/12526

   ### Description
   
   1. Add a new metadata response header to the Standalone API. This includes 
`X-Last-Modified` and `X-Digest`. 
   They are used to report to a cluster of multiple APISIX instances, which 
instance was last updated, and the configuration digest currently in use.
   The `X-Digest` is passed in by the `PUT` request and recorded in memory, and 
then output in the response header of a `GET` or `HEAD` request. This value is 
transparent to APISIX, which does not parse or generate the value in any way; 
it is completely controlled by the client. There is a simple judgment here; if 
the digest input for the PUT request matches what is currently stored in 
memory, the API will return 204, and the configuration update will not actually 
occur.
   
   2. Add support for the `HEAD` method, which returns only metadata but not 
configuration.
   
   ### Checklist
   
   - [x] I have explained the need for this PR and the problem it solves
   - [x] I have explained the changes or the new features added to this PR
   - [x] I have added tests corresponding to this change
   - [ ] I have updated the documentation to reflect this change
   - [ ] I have verified that this change is backward compatible (If not, 
please discuss on the [APISIX mailing 
list](https://github.com/apache/apisix/tree/master#community) first) 
   
   I explicitly point out that this is not backwards compatible. Since this 
feature is clearly marked as experimental and users have been warned not to 
rely on it, we can comfortably make the changes we need.
   
   <!--
   
   Note
   
   1. Mark the PR as draft until it's ready to be reviewed.
   2. Always add/update tests for any changes unless you have a good reason.
   3. Always update the documentation to reflect the changes made in the PR.
   4. Make a new commit to resolve conversations instead of `push -f`.
   5. To resolve merge conflicts, merge master instead of rebasing.
   6. Use "request review" to notify the reviewer after making changes.
   7. Only a reviewer can mark a conversation as resolved.
   
   -->
   


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to