method set_uri uri =
    call_method_void sv "uri" [sv_of_string uri]