From 3de24d3f02aaa27be29ab5a761db07fe71bb9659 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sat, 29 Jun 2024 19:18:11 +0300 Subject: [PATCH] README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8cf5998..4cdd8ed 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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