Method Protocols.HTTP.Server.Request()->response_and_finish()
- Method response_and_finish
voidresponse_and_finish(mappingm,function(:void)|void_log_cb)- Description
return a properly formatted response to the HTTP client
- 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 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.