AddGlobalHeader() public method

Adds global headers to the HttpClient.
public AddGlobalHeader ( string name, string value ) : void
name string Header name.
value string Header value.
return void
Ejemplo n.º 1
0
 public void setup()
 {
     DBName = "httphelpertests" + DateTime.Now.Ticks;
     baseUri = new Uri(string.Format(@"https://{0}.cloudant.com/", TestConstants.account));
     helper = new HttpHelper(baseUri);
     helper.AddGlobalHeader("Authorization", "Basic " + Convert.ToBase64String(System.Text.UTF8Encoding.UTF8.GetBytes(TestConstants.username + ":" + TestConstants.password)));
 }