UNPKG

kibana-riya

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

19 lines (15 loc) 471 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.isSystemApiRequest = isSystemApiRequest; var SYSTEM_API_HEADER_NAME = 'kbn-system-api'; /** * Checks on the *server-side*, if an HTTP request is a system API request * * @param request HAPI request object * @return true if request is a system API request; false, otherwise */ function isSystemApiRequest(request) { return !!request.headers[SYSTEM_API_HEADER_NAME]; }