static void PrepareAuthentication(HttpOptions options, HttpWebRequest request) { var basic_auth = options.AdditionalOptions.basic_auth; if (basic_auth != null) { options.BasicAuth(basic_auth.username, basic_auth.password); } }