Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » httpHeaders(String)
next | previous | forward | backward | up | index | toc

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

Description

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.25.05
     Connection: close
     Content-Length: 8
     Content-type: text/html; charset=utf-8

     hi there

Ways to use this method:


The source of this document is in Macaulay2Doc/ov_system.m2:1710:0.