private void SetBaseHeaders() { httpHeaders = new HttpHeaders(); httpHeaders.AddOrUpdate(HttpHeaders.DreamFactoryApplicationHeader, "admin"); httpHeaders.AddOrUpdate(HttpHeaders.ContentTypeHeader, ContentSerializer.ContentType); httpHeaders.AddOrUpdate(HttpHeaders.AcceptHeader, ContentSerializer.ContentType); }
private void SetBaseHeaders(string applicationName, string applicationApiKey, string sessionId) { httpHeaders = new HttpHeaders(); httpHeaders.AddOrUpdate(HttpHeaders.FolderNameHeader, applicationName); httpHeaders.AddOrUpdate(HttpHeaders.DreamFactoryApiKeyHeader, applicationApiKey); httpHeaders.AddOrUpdate(HttpHeaders.ContentTypeHeader, ContentSerializer.ContentType); httpHeaders.AddOrUpdate(HttpHeaders.AcceptHeader, ContentSerializer.ContentType); if (!string.IsNullOrEmpty(sessionId)) { httpHeaders.AddOrUpdate(HttpHeaders.DreamFactorySessionTokenHeader, sessionId); } }