soup_auth_new is not a constructor but shows up as one in GIR
SoupAuth
is an abstract class which cannot be instantiated. Therefore soup_auth_new
is actually a factory method and should be considered a static function in language bindings.
Soup-2.4.gir
should not refer to it as constructor.
<constructor name="new" c:identifier="soup_auth_new">
...
</constructor>
This affects vala too, which can be fixed like:
--- a/libsoup/Soup-2.4.metadata
+++ b/libsoup/Soup-2.4.metadata
@@ -18,6 +18,9 @@ ProxyResolver deprecated_since="2.28" replacement="ProxyURIResolver"
// Report upstream
add_* skip=false type="unowned GLib.TimeoutSource"
+Auth
+ // Factory method
+ .new symbol_type="function"
AuthDomain
.accepts#method name="accepts_authorization"
AuthDomainBasic.new skip=false