|
| 1 | +java-httpbin |
| 2 | +Copyright (C) 2018-2023 Andrew Gaul |
| 3 | +Copyright (C) 2015-2016 Bounce Storage, Inc. |
| 4 | + |
| 5 | +Licensed under the Apache License, Version 2.0; see LICENSE for the terms. |
| 6 | + |
| 7 | +================================================================================ |
| 8 | + |
| 9 | +The files this server sends from src/main/resources were taken from httpbin, |
| 10 | +https://github.com/psf/httpbin, so that the endpoints serving them answer with |
| 11 | +what httpbin.org answers with: |
| 12 | + |
| 13 | + src/main/resources/ httpbin/ |
| 14 | + ----------------------------- -------------------------------- |
| 15 | + image.jpg templates/images/jackal.jpg |
| 16 | + image.png templates/images/pig_icon.png |
| 17 | + image.svg templates/images/svg_logo.svg |
| 18 | + image.webp templates/images/wolf_1.webp |
| 19 | + text.html templates/moby.html |
| 20 | + text.xml templates/sample.xml |
| 21 | + utf8.html templates/UTF-8-demo.txt |
| 22 | + forms-post.html templates/forms-post.html |
| 23 | + slideshow.json the /json view's data, from core.py |
| 24 | + |
| 25 | +The four images are byte for byte what httpbin ships. The four documents drop |
| 26 | +the trailing newline, and forms-post.html names the path its form posts to |
| 27 | +where httpbin calls a Jinja function that resolves to the same one. |
| 28 | +slideshow.json holds what the /json view returns, written out as JSON. |
| 29 | + |
| 30 | +httpbin is made available under the terms of *either* of the two licenses |
| 31 | +below. Contributions to httpbin are made under the terms of *both*. |
| 32 | + |
| 33 | +-------------------------------------------------------------------------------- |
| 34 | + |
| 35 | +ISC License |
| 36 | + |
| 37 | +Copyright (c) 2017 Kenneth Reitz. |
| 38 | + |
| 39 | +Permission to use, copy, modify, and/or distribute this software for any |
| 40 | +purpose with or without fee is hereby granted, provided that the above |
| 41 | +copyright notice and this permission notice appear in all copies. |
| 42 | + |
| 43 | +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 44 | +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 45 | +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 46 | +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 47 | +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 48 | +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 49 | +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 50 | + |
| 51 | +-------------------------------------------------------------------------------- |
| 52 | + |
| 53 | +MIT License |
| 54 | + |
| 55 | +Copyright 2017 Kenneth Reitz |
| 56 | + |
| 57 | +Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 58 | +this software and associated documentation files (the “Software”), to deal in |
| 59 | +the Software without restriction, including without limitation the rights to |
| 60 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 61 | +of the Software, and to permit persons to whom the Software is furnished to do |
| 62 | +so, subject to the following conditions: |
| 63 | + |
| 64 | +The above copyright notice and this permission notice shall be included in all |
| 65 | +copies or substantial portions of the Software. |
| 66 | + |
| 67 | +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 68 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 69 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 70 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 71 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 72 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 73 | +SOFTWARE. |
0 commit comments