Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gateway): _redirects file support #8816

Closed

Commits on Apr 4, 2022

  1. - implement basic redirect

    - _redirects: add support for 200 rewrite
    - add support for regex in redirects
    cbrake authored and Justin Johnson committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    6152fa0 View commit details
    Browse the repository at this point in the history
  2. - Update getOrHeadHandler to dispatch to getOrHeadHandlerUnixFs for U…

    …nixfs reponse format
    
    - Write functions for logic in getOrHeadHandler, to make it easier to read and to enable reuse in getOrHeadHandlerUnixfs
    - Move Unixfs specific functions to gateway_handler_unixfs.go
    - Check for _redirects file if we have origin isolation
    Justin Johnson committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    0395527 View commit details
    Browse the repository at this point in the history
  3. - More descriptive sharness test names

    - Add test for no redirect due to no origin isolation
    Justin Johnson committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    39e82fb View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. - More error handling

    - Use http.* for status codes instead of hardcoded numbers
    - Test default of no status code in redirects
    Justin Johnson committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    ce9e6cf View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. Cleanup function names

    Justin Johnson committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    6a855f8 View commit details
    Browse the repository at this point in the history
  2. Wrap error with valuable context before returning

    Justin Johnson committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    b7422d7 View commit details
    Browse the repository at this point in the history
  3. More cleanup

    Justin Johnson committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    c47eb7b View commit details
    Browse the repository at this point in the history
  4. Separate redirects logic from legacy redirect code

    Justin Johnson committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    9ef1863 View commit details
    Browse the repository at this point in the history