Method Protocols.HTTP.Server.Request()->make_response_header()
- Method
make_response_header
stringmake_response_header(mappingm)- Description
Make an HTTP header block from a response mapping.
- Parameter
m Contains elements for generating a response to the client.
"data":stringData to be returned to the client.
"file":objectFile object, the contents of which will be returned to the client.
"error":intHTTP error code
"size":intLength of content to be returned. If file is provided, size bytes will be returned to client.
"modified":stringContains optional modification date.
"type":stringContains optional content-type
"extra_heads":mappingContains a mapping of additional headers to be returned to client.
"server":stringContains the server identification header.
- See also