Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
HTTP-based push and receive components for qb. This allows you to use HTTP to communicate between service applications.
The http dialect is simple.
npm install qb-http --save
// Receive component
qb.component(require('qb-http').receive, httpReceiveOptions)
.on('http-ready', function () {
console.log('http server is setup and ready to go')
})
// Push component
.component(require('qb-http').push, httpPushOptions)
.alias('foobar', 'http://my.other.service.com/api/v1/push/foobar')
.push('foobar', {baz: buzz})
Also, here's the external API (if the base
option is /api/qb
:
$ curl http://server.domain.tld/api/qb/service-name -XPOST -H'Content-Type: application/json' -d'{"task": "data"}'
retry
Number of times to retry a http curl if an error is encountered.port
Port Number (if not present, server will not be started to listen)unix
A path to a unix socket (only listened on if port
is falsy)app
Pass in an express app. If none is passed, one will be created.base
Base api prefixno_middleware
Dont attach middleware (body parser is the only required one. logging is suggested)auth
A {user: '', pass: ''}
object for basic authno_404_catch
Don't attach a catch-all at base
to reply with a 404 Not Foundreply
A function (req, res, error)
to respond to requests. Default uses jsonp
To access the underlying express server, use qb._http.app
and qb._http.server
.
MIT in LICENSE file
FAQs
http dialect for QB service framework
We found that qb-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.