Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何使用 Mason 获取 HTTP 标头。我只知道 $m 是梅森请求类。
你可以试试:
$ENV{'REQUEST_METHOD'}
Mason 本身并不处理 HTTP,因为它本质上只是一个模板系统。HTTP 传输将由Placksay Poetor处理Catalyst,这就是您应该从中获取标头的地方。但是由于你没有提到你在梅森旁边使用的东西,我不能告诉你在哪里看。
Plack
Poet
Catalyst