为了账号安全,请及时绑定邮箱和手机立即绑定

求问header = [ element ] *( "," [ element ] ) 是什么语言写

求问header = [ element ] *( "," [ element ] ) 是什么语言写

拉莫斯之舞 2021-05-25 18:14:59
这是httpclient包里面的内容,header = [ element ] *( "," [ element ] ) 是什么?用什么语言写的?麻烦解释一下前两句意思,有相关资料给出的话更好,谢谢Some HTTP headers (such as the set-cookie header) have values that can be decomposed into multiple elements. Such headers must be in the following form:header = [ element ] *( "," [ element ] )element = name [ "=" [ value ] ] *( ";" [ param ] )param = name [ "=" [ value ] ]name = tokenvalue = ( token | quoted-string )token = 1*<any char except "=", ",", ";", <"> andwhite space>quoted-string = <"> *( text | quoted-char ) <">text = any char except <">quoted-char = "\" char
查看完整描述

2 回答

?
尚方宝剑之说

TA贡献1788条经验 获得超4个赞

BNF表示法,语法规则跟正则差不多
header = [ element ] *( "," [ element ] )
header的格式为element开头,后面可以没有,或者有任意个 ,element
也就是说 a 或者 a, b, c 这样的

查看完整回答
反对 回复 2021-05-31
  • 2 回答
  • 0 关注
  • 210 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信