Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Provides a Q promise API for HTTP requests and responses. This should resemble JSGI and its hypothetical inverse, but I haven't pored through the specification to ensure this.
Server(app)
listen(port)
stop()
request(request)
read(request)
normalizeRequest(request)
forEach
into proper response objects.undefined
through as a signal that a request
will not receive a response directly.url
the full URL of the request as a stringpath
the full path as a stringscriptName
the routed portion of the path, like ""
for
http://example.com/
if no routing has occurred.pathInfo
the part of the path that remains to be routed,
like /
for http://example.com
or http://example.com/
if no routing has occurred.version
the requested HTTP version as an array of strings.method
like "GET"
scheme
like "http:"
host
like "example.com"
port
the port number, like 80
remoteHost
remotePort
headers
corresponding values, possibly an array for multiple headers
of the same name.body
node
the wrapped Node request objectstatus
the HTTP status code as a number, like 200
.headers
body
onclose
is an optional function that this library will call
when a response concludes.node
the wrapped Node response object.forEach(callback)
callback(chunk)
function
Buffer
forEach
function for arrays of strings or buffers is
sufficient for user-provided bodiesforEach
function is the only necessary function for
bodies provided to this library.forEach
, bodies provided by this library
support the entire readable stream interface provided by
q-io
.read()
Copyright 2009, 2010, 2011 Kristopher Michael Kowal MIT License (enclosed)
FAQs
Q promise based HTTP client and server interface
We found that q-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.