You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
843 B
C#

using JumpKick.HttpLib.Provider;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JumpKick.HttpLib.Builder
{
public partial class RequestBuilder
{
#region Auth
private AuthenticationProvider authProvider;
public RequestBuilder Auth(string username, string password)
{
authProvider = new BasicAuthenticationProvider(username, password);
return this;
}
public RequestBuilder Auth(string text)
{
authProvider = new TextAuthenticationProvider(text);
return this;
}
public RequestBuilder Auth(AuthenticationProvider provider)
{
authProvider = provider;
return this;
}
#endregion
}
}