UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

26 lines (15 loc) 531 B
[**minigame-std**](../README.md) *** [minigame-std](../README.md) / assertSafeUrl # Function: assertSafeUrl() ```ts function assertSafeUrl(url): void ``` Defined in: [src/std/assert/assertions.ts:15](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/assert/assertions.ts#L15) 断言传入的 URL 是否为 `https` 协议。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | 需要断言的 URL 字符串。 | ## Returns `void`