Most programs like this have a tab for this, and when using Cartero I find that not having a feature like this makes my work more difficult.
There should be an additional tab called Parameters, with a KeyValuePane inside.
Modifying the URL in the request_url field should update the parameters presented in the field. Modifying the contents of the KeyValuePane for the parameters should cause the parameters to be grouped again into a querystring, and the request_url should have its current URL changed as well.
Disabling a param from the pane should remove it from the URL as well.
I believe this is going to be tricky because changing the contents of the request_url after touching the pane may cause a "request_url has changed" event to fire back, entering an infinite loop. I suspect I'm going to need to add a mutex that prevents both event listeners from trying to update one each other.
Most programs like this have a tab for this, and when using Cartero I find that not having a feature like this makes my work more difficult.
There should be an additional tab called Parameters, with a KeyValuePane inside.
Modifying the URL in the request_url field should update the parameters presented in the field. Modifying the contents of the KeyValuePane for the parameters should cause the parameters to be grouped again into a querystring, and the request_url should have its current URL changed as well.
Disabling a param from the pane should remove it from the URL as well.
I believe this is going to be tricky because changing the contents of the request_url after touching the pane may cause a "request_url has changed" event to fire back, entering an infinite loop. I suspect I'm going to need to add a mutex that prevents both event listeners from trying to update one each other.