src/Foundation/Net/Gimela.Net.Http/Authentication/BasicAuthentication.cs
/// <summary>
/// Create a response that can be sent in the WWW-Authenticate header.
/// </summary>
/// <param name="realm">Realm that the user should authenticate in</param>
/// <returns>
/// A WWW-Authenticate header.
/// </returns>
/// <exception cref="ArgumentNullException">Argument is <c>null</c>.</exception>
Create a response that can be sent in the WWW-Authenticate header.
Create a response that can be sent in the WWW - Authenticate header .
public IHeader CreateChallenge(string realm)
    {
      if (string.IsNullOrEmpty(realm))
        throw new ArgumentNullException("realm");
      return new StringHeader("WWW-Authenticate", "Basic realm=\"" + realm + "\"");
    }
public IHeader CreateChallenge ( string realm ) { if ( string . IsNullOrEmpty ( realm ) ) throw new ArgumentNullException ( " " ) ; return new StringHeader ( " " , " \" " + realm + " \" " ) ; }
Create a response that can be sent in the WWW-Authenticate header.
Create a response that can be sent in the WWW - Authenticate header .
A WWW-Authenticate header.
A WWW - Authenticate header .
Argument is null
Argument is null
realm
string
Realm that the user should authenticate in
Realm that the user should authenticate in