[examples] fix the copyright header of example files

This commit is contained in:
cronopio 2013-11-19 19:58:28 -05:00
parent d85ccdd333
commit e592c53d1a
14 changed files with 64 additions and 12 deletions

View File

@ -1,3 +1,29 @@
/*
simple-balancer.js: Example of a simple round robin balancer for websockets
Copyright (c) Nodejitsu 2013
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.
*/
var http = require('http'), var http = require('http'),
httpProxy = require('../../lib/http-proxy'); httpProxy = require('../../lib/http-proxy');

View File

@ -1,3 +1,29 @@
/*
simple-balancer.js: Example of a simple round robin balancer
Copyright (c) Nodejitsu 2013
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.
*/
var http = require('http'), var http = require('http'),
httpProxy = require('../../lib/http-proxy'); httpProxy = require('../../lib/http-proxy');
// //

View File

@ -1,7 +1,7 @@
/* /*
basic-proxy.js: Basic example of proxying over HTTP basic-proxy.js: Basic example of proxying over HTTP
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
concurrent-proxy.js: check levelof concurrency through proxy. concurrent-proxy.js: check levelof concurrency through proxy.
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
custom-proxy-error.js: Example of using the custom `proxyError` event. custom-proxy-error.js: Example of using the custom `proxyError` event.
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
forward-and-target-proxy.js: Example of proxying over HTTP with additional forward proxy forward-and-target-proxy.js: Example of proxying over HTTP with additional forward proxy
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
forward-proxy.js: Example of proxying over HTTP with additional forward proxy forward-proxy.js: Example of proxying over HTTP with additional forward proxy
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
latent-proxy.js: Example of proxying over HTTP with latency latent-proxy.js: Example of proxying over HTTP with latency
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
proxy-https-to-http.js: Basic example of proxying over HTTPS to a target HTTP server proxy-https-to-http.js: Basic example of proxying over HTTPS to a target HTTP server
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
proxy-https-to-https.js: Basic example of proxying over HTTPS to a target HTTPS server proxy-https-to-https.js: Basic example of proxying over HTTPS to a target HTTPS server
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
standalone-proxy.js: Example of proxying over HTTP with a standalone HTTP server. standalone-proxy.js: Example of proxying over HTTP with a standalone HTTP server.
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
standalone-websocket-proxy.js: Example of proxying websockets over HTTP with a standalone HTTP server. standalone-websocket-proxy.js: Example of proxying websockets over HTTP with a standalone HTTP server.
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
standalone-websocket-proxy.js: Example of proxying websockets over HTTP with a standalone HTTP server. standalone-websocket-proxy.js: Example of proxying websockets over HTTP with a standalone HTTP server.
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@ -1,7 +1,7 @@
/* /*
web-socket-proxy.js: Example of proxying over HTTP and WebSockets. web-socket-proxy.js: Example of proxying over HTTP and WebSockets.
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires. Copyright (c) Nodejitsu 2013
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the