August 1999
Intermediate to advanced
1488 pages
72h 53m
English
addResponseHeader(key, value)
The addResponseHeader function is a top-level function that is not associated with any core object. This function is used to add fields and values to the HTTP header sent back to the client. Because of when the actual header is sent in relation to the body of the data, you should be sure to set these fields and values before you call the flush or redirect functions.
Note
Because the JavaScript runtime engine flushes the output buffer after 64KB of content has been generated, you should be sure to call the addResponseHeader function before this time.
Listing 8.3 shows how you can send back a dynamically built external JavaScript source file to a browser with ...
Read now
Unlock full access