Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
  • Loading branch information
iMacTia and olleolleolle committed Aug 9, 2021
1 parent 1054c83 commit 13c077e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/middleware/list.md
Expand Up @@ -27,7 +27,7 @@ base64 representation.
* [`Multipart`][multipart] converts a `Faraday::Request#body` hash of key/value pairs into a
multipart form request.
* [`UrlEncoded`][url_encoded] converts a `Faraday::Request#body` hash of key/value pairs into a url-encoded request body.
* [`Json Request`][json-request] converts a `Faraday::Request#body` hash of key/value pairs into a json request body.
* [`Json Request`][json-request] converts a `Faraday::Request#body` hash of key/value pairs into a JSON request body.
* [`Json Response`][json-response] parses response body into a hash of key/value pairs.
* [`Retry`][retry] automatically retries requests that fail due to intermittent client
or server errors (such as network hiccups).
Expand Down
2 changes: 1 addition & 1 deletion docs/middleware/request/instrumentation.md
Expand Up @@ -5,7 +5,7 @@ permalink: /middleware/instrumentation
hide: true
prev_name: Retry Middleware
prev_link: ./retry
next_name: Json Response Middleware
next_name: JSON Response Middleware
next_link: ./json-response
top_name: Back to Middleware
top_link: ./list
Expand Down
6 changes: 3 additions & 3 deletions docs/middleware/request/json.md
@@ -1,6 +1,6 @@
---
layout: documentation
title: "Json Request Middleware"
title: "JSON Request Middleware"
permalink: /middleware/json-request
hide: true
prev_name: UrlEncoded Middleware
Expand All @@ -11,9 +11,9 @@ top_name: Back to Middleware
top_link: ./list
---

The `Json Request` middleware converts a `Faraday::Request#body` hash of key/value pairs into a json request body.
The `Json Request` middleware converts a `Faraday::Request#body` hash of key/value pairs into a JSON request body.
The middleware also automatically sets the `Content-Type` header to `application/json`,
processes only requests with matching Content-type or those without a type and
processes only requests with matching Content-Type or those without a type and
doesn't try to encode bodies that already are in string form.

### Example Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/middleware/request/url_encoded.md
Expand Up @@ -5,7 +5,7 @@ permalink: /middleware/url-encoded
hide: true
prev_name: Multipart Middleware
prev_link: ./multipart
next_name: Json Request Middleware
next_name: JSON Request Middleware
next_link: ./json-request
top_name: Back to Middleware
top_link: ./list
Expand Down
2 changes: 1 addition & 1 deletion docs/middleware/response/json.md
@@ -1,6 +1,6 @@
---
layout: documentation
title: "Json Response Middleware"
title: "JSON Response Middleware"
permalink: /middleware/json-response
hide: true
prev_name: Instrumentation Middleware
Expand Down
2 changes: 1 addition & 1 deletion docs/middleware/response/logger.md
Expand Up @@ -3,7 +3,7 @@ layout: documentation
title: "Logger Middleware"
permalink: /middleware/logger
hide: true
prev_name: Json Response Middleware
prev_name: JSON Response Middleware
prev_link: ./json-response
next_name: RaiseError Middleware
next_link: ./raise-error
Expand Down

0 comments on commit 13c077e

Please sign in to comment.