Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dkx/http-server

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dkx/http-server - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

lib/request/request.d.ts

@@ -10,2 +10,4 @@ /// <reference types="node" />

constructor(method?: string, url?: string, headers?: IncomingHttpHeaders, body?: Readable);
hasHeader(name: string): boolean;
getHeader(name: string): string | Array<string> | undefined;
}

@@ -10,4 +10,10 @@ "use strict";

}
hasHeader(name) {
return typeof this.headers[name] !== 'undefined';
}
getHeader(name) {
return this.headers[name];
}
}
exports.Request = Request;
//# sourceMappingURL=request.js.map

2

package.json
{
"name": "@dkx/http-server",
"version": "1.1.0",
"version": "1.2.0",
"description": "Minimalistic HTTP server",

@@ -5,0 +5,0 @@ "repository": "git@gitlab.com:dkx/http/server.git",

@@ -167,2 +167,26 @@ # DKX/Http/Server

* **`hasHeader()`**
Test if header exists.
**Arguments:**
`name: string`: Name of header.
**Return:**
`boolean`
* **`getHeader()`**
Return HTTP header.
**Arguments:**
`name: string`: Name of header.
**Return:**
`string|Array<string>|undefined`
## Response object

@@ -169,0 +193,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc