如果客户提出要求,proto://hostname:port/path
我想得到proto://hostname:port
.
我可能错过了一些东西,但现在我能想到的唯一方法是使用类似的东西
(format nil "~A://~A" (stringify-downcase-scan (server-protocol*)) (host))
是否有任何特定的功能/方法或更简单的方法?
主要原因是返回一个我必须解析server-protocol
的关键字符号(例如)。:http/1.1
我当然可以,但它可能已经存在,我可能错过了。