How to get url form spawner?

Hi, I found something like that:

c.DockerSpawner.pre_spawn_hook = my_function

and this function gets one argument

def my_function(spawner):
     ...

I need from inside of this function accesss current url and get from it arguments, my question is how to get this url?