Parsing Routes for Params

I have a URL like this: http://localhost:8080/thing&a=1&b=2

I also have a DTO if it helps:

public class Thing
{
    public string a {get;set;}
    public string b {get;set;}
}

I want the value of the b parameter. I was hoping not to have to manually parse the URL/URI to get it.
(I cant remember if SS had a set of extension methods for this? Need my memory jogged)

That URL is invalid it needs to be:

http://localhost:8080/thing?a=1&b=2

Then ServiceStack will automatically populate the Request DTO with it.

thanks for correcting the URL! oops.

What method do I call to populate the DTO myself from that URL?

We don’t have an official API since its auto binded, but have a look at how we populate it.