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