![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Simple HTTP status checker w/ timeout.
npm install --save httpcheck
Very simple example to merely check that http://example.com returns a valid HTTP response of some kind:
var check = require('httpcheck')
check({ url: 'http://example.com' }, function(err) {
if (err) {
console.log('HTTP check for example.com failed!')
throw err
}
console.log('HTTP check for example.com has passed')
})
Check that http://example.com/404 returns a HTTP response with status code 404 and give it at most 3 tries.
var check = require('httpcheck')
check({
url: 'http://example.com/404',
checkTries: 3,
check(res) {
if (res && res.statusCode === 404) {
return true
}
return false
}
}, function(err) {
if (err) {
console.log('HTTP check for example.com failed!')
throw err
}
console.log('HTTP check for example.com has passed')
})
httpcheck
takes a small number of parameters:
function(opts, cb)
opts
is an object with properties:
url
: URL to run HTTP check against. Required.checkTries
: Number of times to try the HTTP check. Default is 10.checkInterval
: Interval between HTTP check tries in ms. Default is 1000ms (1 second)checkTimeout
: Timeout for the HTTP check in ms. Default is 30000ms (30 seconds)check
: Custom check function which accepts a HTTP response object and returns
true
or false
on success or failure. Default is that response object is truthy.log
: Custom log function. Default is console.log
.cb
is a function callback which takes a single parameter indicating error.
httpcheck
has tests. Execute npm test
to run them.
httpcheck
is released under the BSD license.
FAQs
Simple HTTP status checker w/ timeout
The npm package httpcheck receives a total of 0 weekly downloads. As such, httpcheck popularity was classified as not popular.
We found that httpcheck 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 iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.