Removed deprecated httpcore func (#19550)
* Remove Deprecated httpcore func * Remove Deprecated httpcore func * Fix a test with Deprecated func * Restart CI, Apple can code shit anymore I tell you
This commit is contained in:
parent
4c76f9f152
commit
7a50d66346
3 changed files with 5 additions and 14 deletions
|
|
@ -347,16 +347,6 @@ func `$`*(code: HttpCode): string =
|
|||
|
||||
func `==`*(a, b: HttpCode): bool {.borrow.}
|
||||
|
||||
proc `==`*(rawCode: string, code: HttpCode): bool
|
||||
{.deprecated: "Deprecated since v1.2; use rawCode == $code instead".} =
|
||||
## Compare the string form of the status code with a HttpCode
|
||||
##
|
||||
## **Note**: According to HTTP/1.1 specification, the reason phrase is
|
||||
## optional and should be ignored by the client, making this
|
||||
## proc only suitable for comparing the `HttpCode` against the
|
||||
## string form of itself.
|
||||
return cmpIgnoreCase(rawCode, $code) == 0
|
||||
|
||||
func is1xx*(code: HttpCode): bool {.inline, since: (1, 5).} =
|
||||
## Determines whether `code` is a 1xx HTTP status code.
|
||||
runnableExamples:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue