|
3 | 3 | dead simple binary to check http status code returned from health-check |
4 | 4 | endpoint. |
5 | 5 |
|
| 6 | + |
6 | 7 | ## Install |
7 | 8 |
|
8 | 9 | ... |
9 | 10 |
|
| 11 | + |
10 | 12 | ## Usage |
11 | 13 |
|
12 | | -- Checking for single code: `http_status_code_check -u http://google.com -s 200` |
| 14 | +- Checking for single code: |
| 15 | + |
| 16 | +`http_status_code_check -u http://google.com -s 200` |
| 17 | + |
| 18 | +- Checking for multiple codes: |
| 19 | + |
| 20 | +`http_status_code_check -u http://google.com -s 201,200` |
| 21 | + |
| 22 | + |
| 23 | +## License |
| 24 | + |
| 25 | +The MIT License (MIT) |
| 26 | + |
| 27 | +Copyright © 2025 Ramon Moraes |
| 28 | + |
| 29 | +Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 30 | +this software and associated documentation files (the "Software"), to deal in |
| 31 | +the Software without restriction, including without limitation the rights to |
| 32 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 33 | +of the Software, and to permit persons to whom the Software is furnished to do |
| 34 | +so, subject to the following conditions: |
13 | 35 |
|
14 | | -- Checking for multiple codes: `http_status_code_check -u http://google.com -s 201,200` |
| 36 | +The above copyright notice and this permission notice shall be included in all |
| 37 | +copies or substantial portions of the Software. |
15 | 38 |
|
| 39 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 40 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 41 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 42 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 43 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 44 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 45 | +SOFTWARE. |
0 commit comments