setHeaderProperty = function (headerProperty, fileProperty) {
    var propertyValue = azureutil.tryGetValueChain(options, fileProperty.split('.'), null);
    if (propertyValue) {
      webResource.withHeader(headerProperty, propertyValue);
    }
  }
This method sets the HTTP headers and is used by all methods except setFileProperties and createFile. 
Those methods will set the x-ms-* headers using setProperties.