event.responseHeaders

Type Table
Event networkRequest
Revision Release 2024.3703
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