You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I need to parse this resp.body.uri value. The example is fairly simple and I can achieve this with some string manipulation (like explode etc), but the URIs can get really complicated - there's a whole complex standard behind it.
All are URIs. Sometimes the URIs may contain other URIs. Sometimes uri- or form-encoded JSON and so on. As I said: complex.
For that, I need to parse the URI properly, so that I can:
Extract the protocol - "openid-credential-offer://",
extract the UrlParams,
maybe parse these as URI and/or JSON again, and so on.
Obviously in scripts.
But I don't see any documentation or any hint on how to include an URI parser in scope of the script. I've searched in the sourcecode of bruno and couldn't find an obvious one either. Which I find strange: surely I'm not the only one in need of parsing URLS in responses?
Is there a URI parser in the stdlib or other lib that I'm missing? If not, how can I get it there and is it planned for inclusion in stdlib or can I help getting it there?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm in need of something fairly simple: parse the URI of a response.
My response is something like:
And I need to parse this
resp.body.uri
value. The example is fairly simple and I can achieve this with some string manipulation (like explode etc), but the URIs can get really complicated - there's a whole complex standard behind it.All are URIs. Sometimes the URIs may contain other URIs. Sometimes uri- or form-encoded JSON and so on. As I said: complex.
For that, I need to parse the URI properly, so that I can:
Obviously in scripts.
But I don't see any documentation or any hint on how to include an URI parser in scope of the script. I've searched in the sourcecode of bruno and couldn't find an obvious one either. Which I find strange: surely I'm not the only one in need of parsing URLS in responses?
Is there a URI parser in the stdlib or other lib that I'm missing? If not, how can I get it there and is it planned for inclusion in stdlib or can I help getting it there?
Beta Was this translation helpful? Give feedback.
All reactions