2

I am generating a lib with Swagger-codegen. The library I used was Volley. It doesn't seem the generated code has any way to cancel a request.

Is there anyway to cancel the request through the generated code?

As our api spec may change between each version, I can not apply big code change to the generated code. Otherwise, it will be difficult to apply same change every time.

jarly
  • 231
  • 1
  • 4
  • 16
  • can you elaborate a bit more on "cancelling" a HTTP request? is that another HTTP request sent to the server to undo the previous request? – William Cheng Feb 02 '16 at 11:49
  • Seems like tweaking the templates to add this is what you'll want to do. I do think that cancelling requests is a good thing, but having better control over request and connect timeouts is probably your issue. – fehguy Feb 03 '16 at 23:59

0 Answers0