mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-03 20:44:46 +00:00
Use .. warning:: (#17320)
This commit is contained in:
@@ -84,7 +84,7 @@ when defined(nimExperimentalJsfetch) or defined(nimdoc):
|
||||
proc unsafeNewFetchOptions*(metod, body, mode, credentials, cache, referrerPolicy: cstring;
|
||||
keepalive: bool; redirect = "follow".cstring; referrer = "client".cstring; integrity = "".cstring): FetchOptions {.importjs:
|
||||
"{method: #, body: #, mode: #, credentials: #, cache: #, referrerPolicy: #, keepalive: #, redirect: #, referrer: #, integrity: #}".}
|
||||
## .. Warning:: Unsafe `newfetchOptions`.
|
||||
## .. warning:: Unsafe `newfetchOptions`.
|
||||
|
||||
func newfetchOptions*(metod: HttpMethod; body: cstring;
|
||||
mode: FetchModes; credentials: FetchCredentials; cache: FetchCaches; referrerPolicy: FetchReferrerPolicies;
|
||||
|
||||
@@ -17,7 +17,7 @@ func add*(self: FormData; name: cstring; value: SomeNumber | bool | cstring, fil
|
||||
func delete*(self: FormData; name: cstring) {.importjs: "#.$1(#)".}
|
||||
## https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete
|
||||
##
|
||||
## .. Warning:: Deletes *all items* with the same key name.
|
||||
## .. warning:: Deletes *all items* with the same key name.
|
||||
|
||||
func getAll*(self: FormData; name: cstring): seq[cstring] {.importjs: "#.$1(#)".}
|
||||
## https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll
|
||||
|
||||
@@ -14,7 +14,7 @@ func add*(self: Headers; key: cstring; value: cstring) {.importjs: "#.append(#,
|
||||
func delete*(self: Headers; key: cstring) {.importjs: "#.$1(#)".}
|
||||
## https://developer.mozilla.org/en-US/docs/Web/API/Headers/delete
|
||||
##
|
||||
## .. Warning:: Delete *all* items with `key` from the headers, including duplicated keys.
|
||||
## .. warning:: Delete *all* items with `key` from the headers, including duplicated keys.
|
||||
|
||||
func hasKey*(self: Headers; key: cstring): bool {.importjs: "#.has(#)".}
|
||||
## https://developer.mozilla.org/en-US/docs/Web/API/Headers/has
|
||||
|
||||
Reference in New Issue
Block a user