rednafi / httpurr

ᗢ HTTP status codes on speed dial
MIT License
20 stars 2 forks source link

Add -feline / -porcelain flag? #11

Closed rednafi closed 1 year ago

rednafi commented 1 year ago

Would it be useful to add a -feline flag that'd work like git --porcelain? This seems useful since some of the status code descriptions can get long and a smaller overview could be nice.

Deciding what's that "smaller overview" can be hard. I'm leaning towards picking the first line of the current descriptions.

rednafi commented 1 year ago

The descriptions are short enough, this is the longest one and the --porcelain flag doesn't add much value here.


ᗢ httpurr
==========

Description
-----------

The HTTP 200 OK success status response code indicates that the request has
succeeded. A 200 response is cacheable by default.

The meaning of a success depends on the HTTP request method:

* GET   : The resource has been fetched and is transmitted in the message body.
* HEAD  : The representation headers are included in the response without any
          message body
* POST  : The resource describing the result of the action is transmitted in the
          message body
* TRACE : The message body contains the request message as received by the
          server. The successful result of a PUT or a DELETE is often not a 200
      OK but a 204 No Content (or a 201 Created when the resource is
      uploaded for the first time).

Status
------

200 OK

Source
------

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200