Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |url_encode

std/secret::|url_encode


Usage

|url_encode(secret, name)

Parameters

↳ secret: Secret<string>
↳ name: string

Return

↴ Secret<string>


Secret made of the URL encoding of a string secret, computed when revealed.

Every character except A-Z a-z 0-9 - . _ ~ is percent-encoded, so the result fits in any URL part, such as credentials: https://{user}:{password}@host.