Git Product home page Git Product logo

Comments (9)

 avatar commented on June 30, 2024 1

Ok, tonight I'll make the PR.

from http-status-check.

freekmurze avatar freekmurze commented on June 30, 2024

Totally agree that the tool should have an option to write the non 2xx responses to a file. I'd accept a non-breaking fully tested pull request for this.

from http-status-check.

 avatar commented on June 30, 2024

As I started to implement the feature, some questions appeared, like:

  • If the file exists, will it be overwritten?
  • Will it be necessary to check for permissions to write the file?
  • Should we use an abstraction (i.e.: Flysystem) to manipulate the file?

from http-status-check.

freekmurze avatar freekmurze commented on June 30, 2024

Thank you for putting time into this.

  • since we're running at the console, we can just ask the user if the file should be overwritten
  • nah, just let it fail if there's no permission to write to the file
  • seems like overkill, let's just use file_put_contents.

from http-status-check.

 avatar commented on June 30, 2024

@freekmurze forgot to change old array styles to new ones in the test, late at night =). I can fix it tomorrow.

from http-status-check.

 avatar commented on June 30, 2024

Fixed the issues reported by StyleCI and squashed the commits.
If there's anything missing, please, report. Thanks!

I'm pretty sure that the implementation could be improved and I'm open to suggestions, but this one was the simplest one from my point of view.

from http-status-check.

freekmurze avatar freekmurze commented on June 30, 2024

Implemented in v2.1.0 🎉

from http-status-check.

jasperjorna avatar jasperjorna commented on June 30, 2024

I opened a ticket for an idea but didn't get round to work on it myself. Come back a couple days later to see somebody implemented it - open source is a beautiful thing.

Thanks a lot @ramirovjr!

from http-status-check.

 avatar commented on June 30, 2024

@twiebie no problem, I'm glad I could help and also thanks @freekmurze for the opportunity to contribute to the project.

from http-status-check.

Related Issues (20)

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.