WebKit2.Credential.new

function new(username: String, password: String, persistence: WebKit2.CredentialPersistence): WebKit2.Credential {
    // Gjs wrapper for webkit_credential_new()
}
  

Create a new credential from the provided username, password and persistence mode.

Since 2.2

username

The username for the new credential

password

The password for the new credential

persistence

The WebKit2.CredentialPersistence of the new credential

Returns

A WebKit2.Credential.