You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/05/07 19:11:27 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new pull request #3554: Added an HTTP-Header equivalent for 'format' TR Query Param

ocket8888 opened a new pull request #3554: Added an HTTP-Header equivalent for 'format' TR Query Param
URL: https://github.com/apache/trafficcontrol/pull/3554
 
 
   ## What does this PR (Pull Request) do?
   - [x] This PR is not related to any Issue
   Adds the `X-TC-Format` HTTP Header as an alternative to/equivalent of the `format` query parameter for TR to use in formatting responses to requests to STEERING Delivery Services.
   
   Accepts either `json` (for compatibility with the query parameter) or `application/json` (for compatibility with HTTP content negotiation) to format response as JSON.
   
   ## Which Traffic Control components are affected by this PR?
   - Documentation
   - Traffic Router
   
   ## What is the best way to verify this PR?
   You could run the TR unit tests, as well as verifying that TR responses to STEERING requests are properly formatted when `X-TC-Format` is given and set to a valid value.
   
   ## The following criteria are ALL met by this PR
   - [ ] This PR includes tests OR I have explained why tests are unnecessary
   - [ ] This PR includes documentation OR I have explained why documentation is unnecessary
   - [ ] This PR includes an update to CHANGELOG.md OR such an update is not necessary
   - [x] This PR includes any and all required license headers
   - [x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
   - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY**

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services