![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.
@aldojs/http
Advanced tools
An enhanced HTTP(S) Server for Node.js.
It uses a pure request handler
instead of the traditional
Nodejs request handler
$ npm add @aldojs/http
To create HTTP or HTTPS servers, you may use the function createServer
.
const { readFileSync } = require('fs');
declare function createServer (options: Options, fn: RequestHandler): Server;
declare function createServer (fn: RequestHandler): Server;
declare function createServer (options: Options): Server;
declare function createServer (): Server;
declare interface Options {
tls?: {
key: readFileSync('path/to/key/file.pem'),
cert: readFileSync('path/to/cert/file.pem')
// see `https.createServer()` for more options to create secure servers
}
}
The request
event handler could be a common or an async function.
It's a pure function to replace the traditional handler
declare type RequestHandler = (request: http.IncomingMessage, response: http.ServerResponse) => void;
Each handler will receive the http.IncomingMessage object as a request, and should return a Response object.
declare type RequestHandler = (request: http.IncomingMessage) => Response | Promise<Response>;
The returned response object should have a send
method to configure and finalize the http.ServerResponse
import { ServerResponse } from 'http';
declare interface Response {
send (res: ServerResponse): void | Promise<void>;
}
FAQs
Enhanced HTTP `Server` for Node.js
The npm package @aldojs/http receives a total of 5 weekly downloads. As such, @aldojs/http popularity was classified as not popular.
We found that @aldojs/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 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.