Giter Club home page Giter Club logo

Comments (6)

ronniekk avatar ronniekk commented on May 18, 2024

I had the needs for this a while ago. I ended up with wrapping the client.get/post functions where I prefixed or suffixed the "name" keyword argument with "[GET]" or "[POST]".

A better way would be if Locust handled this internally so that the request method could have its own column in the UI, which could be better designed and sorted on.

from locust.

heyman avatar heyman commented on May 18, 2024

I agree. And I think that two different HTTP request methods to the same URL, should then be treated separately in the web UI.

from locust.

Jahaja avatar Jahaja commented on May 18, 2024

I've implemented this functionality in a feature-branch named http-methods (commit 6db337d). Give it a quick try or just check through the commit and see if you see any oddities. The tests should pass but are still a bit WIP regarding using flask rather than gevent for the test web server.

from locust.

Jahaja avatar Jahaja commented on May 18, 2024

This issue were solved in the latest commit.

from locust.

heyman avatar heyman commented on May 18, 2024

Nice! Sorry, I was going to check out the branch before, but it totally slipped my mind.

Btw, a nice thing to use if one wants some code review on a feature branch, is to do a pull request from that feature branch into master.

from locust.

Jahaja avatar Jahaja commented on May 18, 2024

Ah, cool, didn't know you could do that.

from locust.

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.