Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Jun 29, 2024
1 parent ff3ba99 commit 3de24d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ There is also a `throw!` function to throw any kind response in an exception.
; clojure.lang.ExceptionInfo: throw: {:type :ring.util.http-response/response, :response {:status 400, :headers {"header" "value"}, :body "body"}}
```

### Catching thrown HTTP status codes
### Catching thrown HTTP responses

Middleware `ring.middleware.http-response/wrap-http-response` catches thrown HTTP-responses and returns the responses within.
See the [facts](https://github.com/metosin/ring-http-response/blob/master/test/ring/middleware/http_response_test.clj) for examples.
Expand All @@ -106,9 +106,9 @@ See the [facts](https://github.com/metosin/ring-http-response/blob/master/test/r
These include: `status`, `header`, `file-response`, `content-type`, `find-header`, `get-header`, `update-header`, `charset`, `set-cookie`, `response?`
`resource-data`, `url-response` and `resource-response`.

## Adding new responess
## Adding new HTTP status codes

All code is generated using [Mustache](https://mustache.github.io/) templates, see [user.cl](https://github.com/metosin/ring-http-response/blob/master/dev/user.clj).
All code is generated using [Mustache](https://mustache.github.io/) templates, see [user.clj](https://github.com/metosin/ring-http-response/blob/master/dev/user.clj).

## Making a release

Expand Down

0 comments on commit 3de24d3

Please sign in to comment.