Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. http-proxy-agent
  2. ================
  3. ### An HTTP(s) proxy `http.Agent` implementation for HTTP
  4. [![Build Status](https://github.com/TooTallNate/node-http-proxy-agent/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-http-proxy-agent/actions?workflow=Node+CI)
  5. This module provides an `http.Agent` implementation that connects to a specified
  6. HTTP or HTTPS proxy server, and can be used with the built-in `http` module.
  7. __Note:__ For HTTP proxy usage with the `https` module, check out
  8. [`node-https-proxy-agent`](https://github.com/TooTallNate/node-https-proxy-agent).
  9. Installation
  10. ------------
  11. Install with `npm`:
  12. ``` bash
  13. $ npm install http-proxy-agent
  14. ```
  15. Example
  16. -------
  17. ``` js
  18. var url = require('url');
  19. var http = require('http');
  20. var HttpProxyAgent = require('http-proxy-agent');
  21. // HTTP/HTTPS proxy to connect to
  22. var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
  23. console.log('using proxy server %j', proxy);
  24. // HTTP endpoint for the proxy to connect to
  25. var endpoint = process.argv[2] || 'http://nodejs.org/api/';
  26. console.log('attempting to GET %j', endpoint);
  27. var opts = url.parse(endpoint);
  28. // create an instance of the `HttpProxyAgent` class with the proxy server information
  29. var agent = new HttpProxyAgent(proxy);
  30. opts.agent = agent;
  31. http.get(opts, function (res) {
  32. console.log('"response" event!', res.headers);
  33. res.pipe(process.stdout);
  34. });
  35. ```
  36. License
  37. -------
  38. (The MIT License)
  39. Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
  40. Permission is hereby granted, free of charge, to any person obtaining
  41. a copy of this software and associated documentation files (the
  42. 'Software'), to deal in the Software without restriction, including
  43. without limitation the rights to use, copy, modify, merge, publish,
  44. distribute, sublicense, and/or sell copies of the Software, and to
  45. permit persons to whom the Software is furnished to do so, subject to
  46. the following conditions:
  47. The above copyright notice and this permission notice shall be
  48. included in all copies or substantial portions of the Software.
  49. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  50. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  51. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  52. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  53. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  54. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  55. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.