event.responseHeaders

Type Table
Event networkRequest
Revision Release 2022.3683
Keywords networkRequest, responseHeaders

Overview

A table providing response header values with string keys.

Example

-- Print the Content-Type header value for a response
local function networkListener( event )
    print( "Content-Type of response is: " .. event.responseHeaders["Content-Type"] )
end