Skip to content

Commit e42a0d5

Browse files
committed
Update README.md
1 parent 3123c34 commit e42a0d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,22 +175,22 @@ customJsonDecoder.dateEncoding = .millisecondsSince1970
175175
let bearerToken = "bearer your_token"
176176

177177
utility.customJsonDecoder = customJsonDecoder
178-
utility.authenticationToken = token
178+
utility.authenticationToken = bearerToken
179179

180180
```
181181

182182
## HUNetworkError
183183

184184
The HUNetworkError structure provides in detail description beneficial for debugging purpose, given are the following properties that will be populated in case an error occurs
185185

186-
1. ### Status: This will contain the HTTPStatus code for the request (200)
186+
1. ##### Status: ##### This will contain the HTTPStatus code for the request (200)
187187

188-
2. ### ServerResponse: This will be the JSON string of the response you received from the server. (not to be confused with error parameter) on error if server returns the error JSON data that message will be decoded to human readable string.
188+
2. ##### ServerResponse: ##### This will be the JSON string of the response you received from the server. (not to be confused with error parameter) on error if server returns the error JSON data that message will be decoded to human readable string.
189189

190-
3. ### RequestUrl: The request URL that you just called.
190+
3. ##### RequestUrl: ##### The request URL that you just called.
191191

192-
4. ### RequestBody: If you get failure on POST request this property would contain a string representation of the HTTPBody that was sent to the server.
192+
4. ##### RequestBody: ##### If you get failure on POST request this property would contain a string representation of the HTTPBody that was sent to the server.
193193

194-
5. ### Reason: This property would contain the debug description from the error closure parameter.
194+
5. ##### Reason: ##### This property would contain the debug description from the error closure parameter.
195195

196196
This utility is for performing basic tasks, and is currently evolving, but if you have any specific feature in mind then please feel free to drop a request and I will try my best to implement it

0 commit comments

Comments
 (0)