Added the setPort example in the BasicAuthenticationExample

This commit is contained in:
mathias 2021-10-04 15:41:11 +02:00
parent 075263d079
commit 0c4beeacd6
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -8,6 +8,9 @@ public class BasicAuthenticationExample {
// Create an instance of the SimpleAutoResponder
SimpleAutoResponder autoResponder = new SimpleAutoResponder();
// If you want to, you can also set the port of the webserver (default: 8025)
autoResponder.setPort(8031);
// Set your username & password
autoResponder.useAuthentication("username", "password");