![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@adonisjs/http-server
Advanced tools
Node.js HTTP server with a slick router used by AdonisJs. Think of it as an ExpressJs style server written in Typescript.
Install the package from npm registry as follows:
npm i @adonisjs/http-server
# yarn
yarn add @adonisjs/http-server
and then use it as follows:
import proxyaddr from 'proxy-addr'
import { createServer } from 'http'
import { Logger } from '@adonisjs/logger/build/standalone'
import { Profiler } from '@adonisjs/profiler/build/standalone'
import { Server } from '@adonisjs/http-server/build/standalone'
const logger = new Logger({ enabled: false, level: 'trace', name: 'adonis' })
const profiler = new Profiler({})
const config = {
etag: false,
jsonpCallbackName: 'callback',
cookie: {},
subdomainOffset: 2,
generateRequestId: false,
secret: Math.random().toFixed(36).substring(2, 38),
trustProxy: proxyaddr.compile('loopback'),
allowMethodSpoofing: false,
}
const server = new Server({} as any, logger, profiler, config)
server.optimize()
createServer(server.handle.bind(server)).listen(3000)
AdonisJs has one of the most advanced and fast router. It has support for Route groups
, Resourceful resources
and many more.
router.group(() => {
router.get('/', async () => {
})
}).prefix('v1')
Following is the list of actions profiled during an HTTP request
We recommend you to check the API docs to get a complete reference of all the classes.
Following are the autogenerated files via Typedoc
FAQs
AdonisJS HTTP server with support packed with Routing and Cookies
We found that @adonisjs/http-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.