Skip to content

Commit

Permalink
[pack] Update (docs): misc
Browse files Browse the repository at this point in the history
  • Loading branch information
WhereJuly committed Dec 1, 2024
1 parent b7ec9b1 commit 2a9882d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .docs/combined-usage-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Methods.isAmong(request.method); // true
* Normalize and test against `allowed` methods as inline literal or constant,
* defined in advance for each specific endpoint or route
*/
Methods.isAmong(request.method, ['GET', 'POST']); // false
Methods.isAmong(request.method, [EHTTPMethods.GET, EHTTPMethods.POST]); // false
```

> Here I could implement the groups functionality like
Expand Down
2 changes: 1 addition & 1 deletion .docs/statuses.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## HTTP Statuses
## HTTP Statuses Module

- Ensure you use the latest valid status codes and messages from [RFC 9110 Status Codes](https://www.rfc-editor.org/rfc/rfc9110.html#section-15) across your application;
- Comfortably autocomplete desired status values from a typed constant like this `console.log(THTTPStatuses[200]) // { code: 200, message: 'Success' }`.
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ On top it has convenience manipulation functionality.
- [Combined Usage Example](#combined-usage-example)
- [HTTP Methods](#http-methods)
- [HTTP Statuses](#http-statuses)
- [HTTP MIME Types Module](#http-mime-types-module)
- [HTTP MIME Types](#http-mime-types)
- [HTTP Headers](#http-headers)
- [Maintenance](#maintenance)
- [Changelog](#changelog)
Expand Down Expand Up @@ -98,7 +98,7 @@ npm install http-convenience-pack

## [HTTP Statuses](.docs/statuses.md)

## [HTTP MIME Types Module](.docs/mime-types.md)
## [HTTP MIME Types](.docs/mime-types.md)

## HTTP Headers

Expand Down

0 comments on commit 2a9882d

Please sign in to comment.