"How to Use Python HTTP Request to Send a Request with Long Poll? Best Practices?"

9 Replies, 1636 Views

Man, I feel you on the spaghetti code thing. I once spent hours debugging a python http request to send request with long poll setup because I didn’t modularize my code.

One thing that helped me was using `pytest` for testing. Mocking the server responses made it way easier to catch edge cases.

Also, check out `httpbin.org` for testing your requests. It’s free and super handy.

Messages In This Thread



Users browsing this thread: 1 Guest(s)