Streaming uri via Cookie

I’m looking to stream a HLS source using a Cookie as the auth method. I don’t see any option within urisourcebin, but looking at souphttpsrc there is a cookie property that takes a Gstv… I can’t seem to figure out the format to send that in via gst-launch.

Has anyone run across this? Or used a different element to stream uris via cookies?

iirc the way to do this is to create a SoupSession, add a cookie jar to it (the jar would contain whatever cookie you want to set), then wrap the session in a GstContext (named gst.soup.session) and then set that context on the pipeline.