class basic_auth_handler :Basic authentication. Authentication information is obtained by the passed key_handler.?enable_auth_in_advance:bool -> #key_handler ->auth_handler
enable_auth_in_advance: If set to true, authentication can be
done in advance, i.e. before the server requests authentication.
This reduces the number of messages exchanged with the server, but
may be an additional security risk.