Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
cb3171a
Configure Renovate (#1355)
renovate[bot] Aug 22, 2019
569e2ac
Update .nyc_output (#1339)
chyzwar Aug 22, 2019
acdbec0
Fix docs for rewrite options - 201 also handled (#1147)
smh Aug 22, 2019
235f0aa
Highlight correct lines for createProxyServer (#1117)
jtrussell Aug 22, 2019
91fee3e
[refactor doc] Complete rename to http-party org. (#1362)
indexzero Aug 22, 2019
36bfe56
x-forwarded-host overwrite for mutli level proxies (#1267)
jaggernoth Aug 22, 2019
b00911c
[dist] Update dependency ws to v3 [SECURITY]
renovate-bot Aug 22, 2019
a9b09cc
[dist] End of an era.
indexzero Aug 22, 2019
7e4a0e5
[dist] New test fixtures.
indexzero Aug 22, 2019
fc93520
[dist] .gitattributes all the things.
indexzero Aug 22, 2019
16d4f8a
[dist] Regenerate package-lock.json.
indexzero Aug 22, 2019
dd1d08b
[fix test] Update tests.
indexzero Aug 22, 2019
59c4403
[fix] Latest versions.
indexzero Aug 22, 2019
e588213
[dist] Update dependency concat-stream to v2 (#1363)
renovate[bot] Aug 22, 2019
749eec6
[dist] Update dependency nyc to v14 (#1367)
renovate[bot] Aug 22, 2019
7a154f8
[dist] Update dependency agentkeepalive to v4 (#1358)
renovate[bot] Aug 22, 2019
4a657a7
[dist] Update all non-major dependencies (#1356)
renovate[bot] Aug 22, 2019
192b2b9
[dist] Update dependency colors to v1 (#1360)
renovate[bot] Aug 22, 2019
9d75b98
[dist] Update dependency eventemitter3 to v4 (#1365)
renovate[bot] Aug 22, 2019
0d9ed36
[dist] Update dependency request to ~2.88.0 [SECURITY] (#1357)
renovate[bot] Aug 22, 2019
c8fa599
Update README.md (#970)
subomi Aug 22, 2019
806e492
fix reverse-proxy example require path (#1067)
piaolingxue Aug 22, 2019
c662f9e
Fix path to local http-proxy in examples. (#1072)
kribblo Aug 22, 2019
77a9815
[dist] Update dependency async to v3 (#1359)
renovate[bot] Aug 22, 2019
b4028ba
Fix modify response middleware example (#1139)
costolo Aug 22, 2019
244303b
Fix incorrect target name for reverse proxy example (#1135)
IdeaHunter Aug 22, 2019
d056241
fix 'Modify Response' readme section to avoid unnecessary array copyi…
nilligan Aug 22, 2019
6e4bef4
Added in auto-changelog module set to keepachangelog format (#1373)
jsmylnycky Sep 5, 2019
9bbe486
[dist] Version bump. 1.18.0
indexzero Sep 18, 2019
dba3966
Remove node6 support, add node12 to build (#1397)
jsmylnycky May 17, 2020
335aeeb
Skip sending the proxyReq event when the expect header is present (#1…
jsmylnycky May 17, 2020
9b96cd7
1.18.1
jcrugzz May 17, 2020
c79d3b8
updates
loren138 Nov 3, 2022
2332cd1
merge upstream
loren138 Nov 3, 2022
c83091a
upgrade yarn
loren138 Nov 3, 2022
dcc40d4
add release tools
loren138 Nov 3, 2022
7985e4f
use destroy
loren138 Nov 3, 2022
527950a
remove build
loren138 Nov 3, 2022
c16da29
remove unneeded dependencies
loren138 Nov 3, 2022
d61b1c1
upgrade nyc
loren138 Nov 3, 2022
36cd198
remove examples
loren138 Nov 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
**Your issue should cover only one concern.** If you wish to group issues or new features, please utilize Github's [milestone feature](https://github.com/Banno/node-developer-portal/milestones).

## Summary

_Why are you opening this issue? Please list any affected institutions_

## Background

_What background information is needed to understand the issue or new feature?_

## Involved Parties

_List any other teams or individuals that are affected by, or working with you, on this_

## Reproduce

1. _List steps needed to be taken to see the issue in action_
2. _Include direct URLs when possible_

## Related

_Links to mocks, scope documents, and any other resource that could aid the assignee._

## Dependencies

- [ ] _Issues or PRs that should be resolved/merged before this issue can be worked on or resolved_
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
^ First, use a descriptive title for your PR. It should not have the issue number.

## What It Does

What is the purpose of this pull request? Examples: "This is a spike to explore…", "This simplifies the display of…", "This fixes handling of…" **Every PR should only do 1 thing.**

Consider providing an overview of why the work is taking place (with any relevant links); don't assume familiarity with the history.

Also explain *how* it was implemented, in general terms.

Reference the Github issues this is fixing/closing, or that are related, using the appropriate [Github/Waffle keywords](https://github.com/waffleio/waffle.io/wiki/Recommended-Workflow-Using-Pull-Requests-&-Automatic-Work-Tracking).

## How To Test

Provide instructions on how to test this change. If there are tricky or edge cases that should be tested, mention those too.

## Notes/Caveats

Are there remaining issues or things this PR hasn't solved yet? Are there long-term implications?

## Dependencies

- [ ] any other PRs or issues that should be resolved/merged before this is merged
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
versioning-strategy: "increase"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ tes.js
npm-debug.log
.nyc_output
coverage
.idea
.run
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ test
examples
doc
benchmark
coverage
.nyc_output
.travis.yml
CHANGELOG.md
UPGRADING.md
UPGRADING.md
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v1.18.1](https://github.com/http-party/node-http-proxy/compare/1.18.0...v1.18.1) - 2020-05-17

### Merged

- Skip sending the proxyReq event when the expect header is present [`#1447`](https://github.com/http-party/node-http-proxy/pull/1447)
- Remove node6 support, add node12 to build [`#1397`](https://github.com/http-party/node-http-proxy/pull/1397)

## [1.18.0](https://github.com/http-party/node-http-proxy/compare/1.17.0...1.18.0) - 2019-09-18

### Merged

- Added in auto-changelog module set to keepachangelog format [`#1373`](https://github.com/http-party/node-http-proxy/pull/1373)
- fix 'Modify Response' readme section to avoid unnecessary array copying [`#1300`](https://github.com/http-party/node-http-proxy/pull/1300)
- Fix incorrect target name for reverse proxy example [`#1135`](https://github.com/http-party/node-http-proxy/pull/1135)
- Fix modify response middleware example [`#1139`](https://github.com/http-party/node-http-proxy/pull/1139)
- [dist] Update dependency async to v3 [`#1359`](https://github.com/http-party/node-http-proxy/pull/1359)
- Fix path to local http-proxy in examples. [`#1072`](https://github.com/http-party/node-http-proxy/pull/1072)
- fix reverse-proxy example require path [`#1067`](https://github.com/http-party/node-http-proxy/pull/1067)
- Update README.md [`#970`](https://github.com/http-party/node-http-proxy/pull/970)
- [dist] Update dependency request to ~2.88.0 [SECURITY] [`#1357`](https://github.com/http-party/node-http-proxy/pull/1357)
- [dist] Update dependency eventemitter3 to v4 [`#1365`](https://github.com/http-party/node-http-proxy/pull/1365)
- [dist] Update dependency colors to v1 [`#1360`](https://github.com/http-party/node-http-proxy/pull/1360)
- [dist] Update all non-major dependencies [`#1356`](https://github.com/http-party/node-http-proxy/pull/1356)
- [dist] Update dependency agentkeepalive to v4 [`#1358`](https://github.com/http-party/node-http-proxy/pull/1358)
- [dist] Update dependency nyc to v14 [`#1367`](https://github.com/http-party/node-http-proxy/pull/1367)
- [dist] Update dependency concat-stream to v2 [`#1363`](https://github.com/http-party/node-http-proxy/pull/1363)
- x-forwarded-host overwrite for mutli level proxies [`#1267`](https://github.com/http-party/node-http-proxy/pull/1267)
- [refactor doc] Complete rename to http-party org. [`#1362`](https://github.com/http-party/node-http-proxy/pull/1362)
- Highlight correct lines for createProxyServer [`#1117`](https://github.com/http-party/node-http-proxy/pull/1117)
- Fix docs for rewrite options - 201 also handled [`#1147`](https://github.com/http-party/node-http-proxy/pull/1147)
- Update .nyc_output [`#1339`](https://github.com/http-party/node-http-proxy/pull/1339)
- Configure Renovate [`#1355`](https://github.com/http-party/node-http-proxy/pull/1355)
- [examples] Restream body before proxying, support for Content-Type of application/x-www-form-urlencoded [`#1264`](https://github.com/http-party/node-http-proxy/pull/1264)

### Commits

- [dist] New test fixtures. [`7e4a0e5`](https://github.com/http-party/node-http-proxy/commit/7e4a0e511bc30c059216860153301de2cdd1e97f)
- [dist] End of an era. [`a9b09cc`](https://github.com/http-party/node-http-proxy/commit/a9b09cce43f072db99fb5170030a05536177ccb7)
- [dist] Version bump. 1.18.0 [`9bbe486`](https://github.com/http-party/node-http-proxy/commit/9bbe486c5efcc356fb4d189ef38eee275bbde345)
- [fix] Latest versions. [`59c4403`](https://github.com/http-party/node-http-proxy/commit/59c4403e9dc15ab9b19ee2a3f4aecbfc6c3d94c4)
- [fix test] Update tests. [`dd1d08b`](https://github.com/http-party/node-http-proxy/commit/dd1d08b6319d1def729554446a5b0176978a8dad)
- [dist] Update dependency ws to v3 [SECURITY] [`b00911c`](https://github.com/http-party/node-http-proxy/commit/b00911c93740a00c5cfbacbb91565cb6912ed255)
- [dist] .gitattributes all the things. [`fc93520`](https://github.com/http-party/node-http-proxy/commit/fc93520d741ec80be8ae31ca005f3e9c199e330e)
- [dist] Regenerate package-lock.json. [`16d4f8a`](https://github.com/http-party/node-http-proxy/commit/16d4f8a95162b2e2e4ee6657c500f1208c044b2d)
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @banno/prism
74 changes: 0 additions & 74 deletions CODE_OF_CONDUCT.md

This file was deleted.

7 changes: 7 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
library identifier: "banno-jenkins-shared-pipelines@v1", changelog: false

def version = bannoNodejsPipeline(
githubUrl: "https://github.com/Banno/node-http-proxy",
nodejsVersion: "14",
slackChannel: "#auto-prism"
)
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p align="center">
<img src="https://raw.github.com/nodejitsu/node-http-proxy/master/doc/logo.png"/>
</p>
# Banno Fork of

# node-http-proxy [![Build Status](https://travis-ci.org/nodejitsu/node-http-proxy.svg?branch=master)](https://travis-ci.org/nodejitsu/node-http-proxy) [![codecov](https://codecov.io/gh/nodejitsu/node-http-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/nodejitsu/node-http-proxy)
https://github.com/http-party/node-http-proxy

# node-http-proxy

`node-http-proxy` is an HTTP programmable proxying library that supports
websockets. It is suitable for implementing components such as reverse
Expand Down Expand Up @@ -45,7 +45,7 @@ Click [here](UPGRADING.md)
### Core Concept

A new proxy is created by calling `createProxyServer` and passing
an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L22-L50))
an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L26-L42))

```javascript
var httpProxy = require('http-proxy');
Expand Down Expand Up @@ -137,7 +137,7 @@ var proxy = httpProxy.createProxyServer({});
var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, { target: 'http://127.0.0.1:5060' });
proxy.web(req, res, { target: 'http://127.0.0.1:5050' });
});

console.log("listening on port 5050")
Expand Down Expand Up @@ -175,7 +175,7 @@ var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, {
target: 'http://127.0.0.1:5060'
target: 'http://127.0.0.1:5050'
});
});

Expand Down Expand Up @@ -501,12 +501,12 @@ data.
selfHandleResponse : true
};
proxy.on('proxyRes', function (proxyRes, req, res) {
var body = new Buffer('');
proxyRes.on('data', function (data) {
body = Buffer.concat([body, data]);
var body = [];
proxyRes.on('data', function (chunk) {
body.push(chunk);
});
proxyRes.on('end', function () {
body = body.toString();
body = Buffer.concat(body).toString();
console.log("res from proxied server:", body);
res.end("my response to cli");
});
Expand Down Expand Up @@ -534,7 +534,7 @@ Logo created by [Diego Pasquali](http://dribbble.com/diegopq)

### Contributing and Issues

* Read carefully our [Code Of Conduct](https://github.com/nodejitsu/node-http-proxy/blob/master/CODE_OF_CONDUCT.md)
* Read carefully our [Code Of Conduct](https://github.com/http-party/node-http-proxy/blob/master/CODE_OF_CONDUCT.md)
* Search on Google/Github
* If you can't find anything, open an issue
* If you feel comfortable about fixing the issue, fork the repo
Expand Down
97 changes: 0 additions & 97 deletions UPGRADING.md

This file was deleted.

Loading