A Dispatch HTTP Request will wait for a 401 response before attempting
to authenticate when using the as() method. However CouchDB does not
send such a response so as_!() needs to be used to enforce immediate
authentication.
The Authorization header used at the moment does not work because it does not base64 encode the user and password.
A Dispatch HTTP Request will wait for a 401 response before attempting to authenticate when using the as() method. However CouchDB does not send such a response so as_!() needs to be used to enforce immediate authentication.
The Authorization header used at the moment does not work because it does not base64 encode the user and password.