uri_copy


Description:

[ CCode ( sentinel = "SOUP_URI_NONE" ) ]
public Uri uri_copy (Uri uri, ...)

As of 3.4.0 this will detect the default ports of HTTP(s) and WS(S) URIs when copying and set it to the default port of the new scheme.

So for example copying `http://localhost:80` while changing the scheme to https will result in `https://localhost:443`.

Return a copy of uri with the given components updated.

Parameters:

uri

the Uri to copy

...

value of first_component followed by additional components and values, terminated by soup_uri_none

first_component

first URIComponent to update

Returns:

a new Uri


Namespace: Soup
Package: libsoup-3.0