Skip to main content
Skip table of contents

setBasicAuthentication

Versionshinweise

19.1

Code

GROOVY
Builder RestUtils.setBasicAuthentication(Builder request, String user, String password);

Beschreibung

Setzt den "Authorization" Header für die http basic-Autorisation.

Parameter

  • request - Das Anfrage-Objekt.
  • user - Der Benutzername.
  • password - Das Passwort.

Rückgabe

Eine neue Anfrage für das Resourcen-Ziel.

Beispiele

GROOVY
request = RestUtils.setBasicAuthentication(request, "username", "password");
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.