feathers-http-distributed
Version:
Distribute FeathersJS apps over the network with inter-service communication using HTTP protocol
20 lines (17 loc) • 358 B
JavaScript
const DEFAULT_PROTOCOL = 'http';
const DEFAULT_TIMEOUT = 0;
const INTERNAL_REQUEST_HEADER = 'X-Internal-Request';
const AXIOS_HTTP_METHODS = {
find: 'get',
get: 'get',
create: 'post',
update: 'put',
patch: 'patch',
remove: 'delete'
};
module.exports = {
DEFAULT_PROTOCOL,
DEFAULT_TIMEOUT,
INTERNAL_REQUEST_HEADER,
AXIOS_HTTP_METHODS
};