Form and send an http response to a socket
http_response(socket, status=200, content_type="text/html; charset=UTF-8", content="", headers=c())A socket descriptor.
An http numeric status code.
The http content type.
The http content (normally of type raw).
List or vector of additional headers to send with the response. All items must be named. Do not include Date, Content-Type or Content-Length headers.
NULL is invisibly returned
Form an http response and send it to the specified socket, closing the socket connection when done.