Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuoe/httpcode
"Which HTTP code was it?"
https://github.com/xuoe/httpcode
http http-code
Last synced: about 16 hours ago
JSON representation
"Which HTTP code was it?"
- Host: GitHub
- URL: https://github.com/xuoe/httpcode
- Owner: xuoe
- License: isc
- Created: 2021-11-08T11:46:45.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T07:23:39.000Z (about 2 years ago)
- Last Synced: 2024-06-20T17:33:28.668Z (6 months ago)
- Topics: http, http-code
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Installation
```
$ go install github.com/xuoe/httpcode@latest
```### Usage
- Search by status code:
```
$ httpcode 300 400
300 Multiple Choices
400 Bad Request
```- Search by status text (case-insensitive, partial matches):
```
$ httpcode accept Bad
202 Accepted
400 Bad Request
406 Not Acceptable
502 Bad Gateway
```- Search by numeric glob pattern (`?` may be replaced by `_` to bypass shell quoting):
```
$ httpcode __9
409 Conflict
429 Too Many Requests
```
These are equivalent:
```
# httpcode '1*'
# httpcode '1??'
$ httpcode 1__
100 Continue
101 Switching Protocols
102 Processing
103 Early Hints
```- Include MDN links:
```
$ httpcode -m 1__
100 Continue https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100
101 Switching Protocols https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101
102 Processing https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102
103 Early Hints https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103
```Note that since multiple arguments are supported, any combination of the above may be used.