minigame-std
Version:
Mini Game Standard Development Library.
28 lines (16 loc) • 534 B
Markdown
[**minigame-std**](../README.md)
***
[minigame-std](../README.md) / assertSafeUrl
# Function: assertSafeUrl()
```ts
function assertSafeUrl(url): void
```
断言传入的 URL 是否为 `https` 协议。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `url` | `string` | 需要断言的 URL 字符串。 |
## Returns
`void`
## Defined in
[src/std/assert/assertions.ts:15](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/assert/assertions.ts#L15)