Macaulay2 » Documentation
Packages » Macaulay2Doc :: httpHeaders(String)
next | previous | forward | backward | up | index | toc

httpHeaders(String) -- prepend http headers to a string



This function is experimental, and is intended to support the development of web servers.

i1 : httpHeaders "hi there"

o1 = HTTP/1.1 200 OK
     Server: Macaulay2/1.22
     Connection: close
     Content-Length: 8
     Content-type: text/html; charset=utf-8

     hi there

Ways to use this method: