我将标头存储在文件中, 这些标头中的“消息”,“服务”和“来自”将它们存储在不同的变量中,并验证它们是否不为空,我需要知道如何提取,请帮忙。
Headers = {Authorization = XXX,offerName = ANY,Accept = text / xml,text / html,image / gif,image / jpeg,*; q = .2, / ; q = .2,Cache-Control = no-cache,locationId = 12346,message = 123456789,service = ServiceNow,userId = T31211,from = Express Now,Content-Type = application / json; charset = utf-8,timestamp = Sun Dec 02 03:45:23 PST 2018}