檢視原始碼 http_uri (inets v9.3.1)
舊的 URI 工具模組,請改用 uri_string
此模組已在 OTP 23 中棄用。請使用模組 uri_string
來正確處理 URI,這是自 OTP 21 以來推薦使用的模組。
資料型別
與 URI 相關的型別定義
uri_part() = [byte()] | binary()
- 依照 RFC 3986 中 URI 的定義,例如 "https://erlang.dev.org.tw/""
有關 URI 的更多資訊,請參閱 RFC 3986。
摘要
函式
此函數已棄用。http_uri:decode/1 已棄用;請改用 uri_string:unquote 函數。
-spec decode(QuotedData) -> Data when QuotedData :: unicode:chardata(), Data :: unicode:chardata().
解碼可能經過百分比編碼的 URI 部分
警告
此函數已棄用。http_uri:encode/1 已棄用;請改用 uri_string:quote 函數。
-spec encode(Data) -> QuotedData when Data :: unicode:chardata(), QuotedData :: unicode:chardata().
執行百分比編碼。
警告