Git Product home page Git Product logo

Comments (9)

nixwiz avatar nixwiz commented on September 26, 2024 2

@agoddard something to consider in implementing this would be its behavior with respect to the --redirect-ok flag. May require additional documentation (e.g. you cannot use --redirect-ok when doing --response-code 301) and the already noted caveats for --redirect-ok.

from http-checks.

agoddard avatar agoddard commented on September 26, 2024 1

Maybe it can be a single code or an array, and when it is an array the order matters, so then you can say "when I hit this redirecting URL with redirect-ok, I want to know that the place I end up gives me a 200" and then of providing an Array, then "when I hit this redirecting URL, I should get a 302 on the way to the 200" [302,200]

from http-checks.

calebhailey avatar calebhailey commented on September 26, 2024

@jspaleta I wonder if we could implement this one as a metric tag + metric threshold check?

from http-checks.

asachs01 avatar asachs01 commented on September 26, 2024

@agoddard is there an internal ref for this one?

from http-checks.

calebhailey avatar calebhailey commented on September 26, 2024

I'm wondering if --redirect-ok and the proposed --reponse-code implementation are necessarily mutually exclusive? What if I want to configure a check to expect a response-code from it's final destination, even if that's after following a redirect?

from http-checks.

calebhailey avatar calebhailey commented on September 26, 2024

Should --response-code be --response-codes (plural)? Then perhaps you could pair --redirect-ok with --response-codes 301,202, meaning any number of 301 redirects and a 202 response code are acceptable result for the check?

from http-checks.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.