[haiku-commits] Re: haiku: hrev47935 - in src/apps/haikudepot: ui model

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 01 Oct 2014 12:42:58 +0200

Am 01.10.2014 10:26, schrieb Stephan Aßmus:
To make the API more intuitive, /something/ has to be changed about it
IMHO. Even just a command line error would have helped me, or a comment
in the header. But silently doing nothing was not helpful.

Why not simply remove the SetUser()/SetPassword() methods from the request, and only add it to the authentication object? That way, you can either define the method of the authentication programmatically in advance, or you can react to a 402 by retrieving the authentication object from the request, and set the name/password there (if you want to handle this inside the request automatically, use a callback mechanism).

Bye,
   Axel.


Other related posts: