mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-12 15:56:56 +02:00
modified
This commit is contained in:
-2
@@ -1,2 +0,0 @@
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "iojs"
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
-52
@@ -1,52 +0,0 @@
|
||||
# HPACK.js
|
||||
|
||||
[](http://travis-ci.org/indutny/hpack.js)
|
||||
[](http://badge.fury.io/js/hpack.js)
|
||||
|
||||
Plain-JS implementation of [HPACK][0].
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
var hpack = require('hpack.js');
|
||||
|
||||
var comp = hpack.compressor.create({ table: { size: 256 } });
|
||||
var decomp = hpack.decompressor.create({ table: { size: 256 } });
|
||||
|
||||
comp.write([ { name: 'host', value: 'localhost' } ]);
|
||||
var raw = comp.read();
|
||||
console.log(raw);
|
||||
// <Buffer 66 86 a0 e4 1d 13 9d 09>
|
||||
|
||||
decomp.write(raw);
|
||||
decomp.execute();
|
||||
console.log(decomp.read());
|
||||
// { name: 'host', value: 'localhost', neverIndex: false }
|
||||
```
|
||||
|
||||
#### LICENSE
|
||||
|
||||
This software is licensed under the MIT License.
|
||||
|
||||
Copyright Fedor Indutny, 2015.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
||||
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
[0]: https://tools.ietf.org/html/rfc7541
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
{
|
||||
"name": "hpack.js",
|
||||
"version": "2.1.6",
|
||||
"description": "HPACK implementation",
|
||||
"main": "lib/hpack.js",
|
||||
"scripts": {
|
||||
"test": "mocha test/*-test.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/indutny/hpack.js.git"
|
||||
},
|
||||
"keywords": [
|
||||
"HPACK",
|
||||
"HTTP2",
|
||||
"compress",
|
||||
"decompress",
|
||||
"headers"
|
||||
],
|
||||
"author": "Fedor Indutny <fedor@indutny.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/indutny/hpack.js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/indutny/hpack.js#readme",
|
||||
"devDependencies": {
|
||||
"mocha": "^2.2.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"inherits": "^2.0.1",
|
||||
"obuf": "^1.0.0",
|
||||
"readable-stream": "^2.0.1",
|
||||
"wbuf": "^1.1.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user