recompose(URIMap) -> URIString
OTP 21.0
類型:
URIMap = uri_map()
URIString = uri_string() | error()
創建一個RFC 3986合規的URIString
(百分比編碼),基於以下組件URIMap
。如果URIMap
無效,返回錯誤元組。
另請參閱相反的操作
parse/1
.
例子:
1> URIMap = #{fragment => "nose", host => "example.com", path => "/over/there",
1> port => 8042, query => "name=ferret", scheme => "foo", userinfo => "user"}.
#{fragment => "nose",host => "example.com",
path => "/over/there",port => 8042,query => "name=ferret",
scheme => "foo",userinfo => "user"}
2> uri_string:recompose(URIMap).
"foo://example.com:8042/over/there?name=ferret#nose"
相關用法
- erlang receive_response(RequestId, Timeout)用法及代碼示例
- erlang recv(Socket)用法及代碼示例
- erlang reverse用法及代碼示例
- erlang rename用法及代碼示例
- erlang remove用法及代碼示例
- erlang registered用法及代碼示例
- erlang register用法及代碼示例
- erlang repair_continuation(Continuation, MatchSpec)用法及代碼示例
- erlang register(RegName, PidOrPort)用法及代碼示例
- erlang registered()用法及代碼示例
- erlang read_file_info(Filename)用法及代碼示例
- erlang read_file_info(File)用法及代碼示例
- erlang remove(Key, Map1)用法及代碼示例
- erlang referenced_byte_size(Binary)用法及代碼示例
- erlang replace(Subject, Pattern, Replacement, Options)用法及代碼示例
- erlang replace(String, SearchPattern, Replacement)用法及代碼示例
- erlang reverse(String :: unicode:chardata())用法及代碼示例
- erlang reverse(List1, Tail)用法及代碼示例
- erlang replace(Subject, RE, Replacement, Options)用法及代碼示例
- erlang relation_to_family(BinRel)用法及代碼示例
- erlang relative_product(ListOfBinRels)用法及代碼示例
- erlang relative_product1(BinRel1, BinRel2)用法及代碼示例
- erlang restriction(BinRel1, Set)用法及代碼示例
- erlang restriction(SetFun, Set1, Set2)用法及代碼示例
- erlang resolve(RefURI, BaseURI)用法及代碼示例
注:本文由純淨天空篩選整理自erlang.org大神的英文原創作品 recompose(URIMap) -> URIString。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。