Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed May 3, 2023
1 parent 8a93b3c commit ec0091b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- ubuntu-latest
- windows-latest
- macOS-latest
experimental: [false]

nim-version:
- 1.6.0
- stable
Expand Down
8 changes: 4 additions & 4 deletions src/scorper/http/httpcore.nim
Original file line number Diff line number Diff line change
Expand Up @@ -286,19 +286,19 @@ func `==`*(a, b: HttpCode): bool {.borrow.}

func is2xx*(code: HttpCode): bool {.inline.} =
## Determines whether ``code`` is a 2xx HTTP status code.
code.int in {200 .. 299}
code.int in 200 .. 299

func is3xx*(code: HttpCode): bool {.inline.} =
## Determines whether ``code`` is a 3xx HTTP status code.
code.int in {300 .. 399}
code.int in 300 .. 399

func is4xx*(code: HttpCode): bool {.inline.} =
## Determines whether ``code`` is a 4xx HTTP status code.
code.int in {400 .. 499}
code.int in 400 .. 499

func is5xx*(code: HttpCode): bool {.inline.} =
## Determines whether ``code`` is a 5xx HTTP status code.
code.int in {500 .. 599}
code.int in 500 .. 599

func `$`*(httpMethod: HttpMethod): string =
return (system.`$`(httpMethod))[4 .. ^1].toUpperAscii()
Expand Down

0 comments on commit ec0091b

Please sign in to comment.