Encode some values in the URL?
rogeralsing opened this issue · comments
Roger Johansson commented
Instead of passing a header for what endpoint to call and when to call it.
Maybe this could be done via the URL to Call-me-later itself.
e.g.
/later/10m/https/github.com/some/path?somearg=123&someotherarg=55
Where github.com/some/path?somearg=123&someotherarg=55
becomes the URL to call
and timeout and protocol are also extracted from the path. e.g 10m
and https
This would make it super easy to replace any existing request in some codebase, with a delayed request.
just modify the URL and it works