// doHtml main wrapper for generating & handling of a Html form
doHtmlServer::!(*HSt->(Html,!*HSt))!*World->*World// use this application with the built-in Clean server
// it will combine both into one application : http://localhost/clean;
doHtmlSubServer::!(!Int,!Int,!Int,!String)!(*HSt->(Html,!*HSt))// priority (higher number = higher prio), min number, max number of subservers, location, html code
!*World->*World// use this application as a subserver in combination with an external (Clean) server;
doHtml::!.(*HSt->(Html,!*HSt))!*World->*World// use this application with some external server using a php script;
doHtmlServer::!(*HSt->(Html,!*HSt))!*World->*World// use this application with the built-in Clean server
// it will combine both into one application : http://localhost/clean;
doHtmlSubServer::!(!Int,!Int,!Int,!String)!(*HSt->(Html,!*HSt))// use this application as a subserver in combination with an external (Clean) server;
!*World->*World// priority (higher number = higher prio), min number, max number of subservers, location, html code
doHtml::!.(*HSt->(Html,!*HSt))!*World->*World// use this application with some external server using a php script;
// mkViewForm is the *swiss army knife* function creating stateful interactive forms with a view v of data d.
// Make sure that all editors have a unique identifier!
#(socket,world)=SendDataToClientsocket"\r\nContent-Type: text/plain\r\nContent-Length: 18\r\n\r\nSubserver Redirect"world//a little text is required when using a redirect -> RFC2616 section 10.3.2
#!(socket,world)=SendDataToClientsocket"HTTP/1.1 501 Unimplemented\r\nConnection: close\r\nContent-Type: text/plain\r\nContent-Length: 27\r\n\r\nOnly Chunked Is Implemented"world//a little text is required when using a 5xx error -> RFC2616 section 10.5
"100-continue"->SendDataToClientsocket"HTTP/1.1 100 Continue\r\n\r\n"world//a client could expect a 100 reply before sending the data -> RFC2616 section 8.2.3
#!(socket,world)=SendDataToClientsocket"HTTP/1.1 501 Unimplemented\r\nConnection: close\r\nContent-Type: text/plain\r\nContent-Length: 27\r\n\r\nOnly Chunked Is Implemented"world//a little text is required when using a 5xx error -> RFC2616 section 10.5
"100-continue"->SendDataToClientsocket"HTTP/1.1 100 Continue\r\n\r\n"world//a client could expect a 100 reply before sending the data -> RFC2616 section 8.2.3
#(sock,world)=caseversionof//does not exist in the other SendString function
"HTTP/1.0"->SendDataToClientsock"HTTP/1.0"world//does not exist in the other SendString function
_->SendDataToClientsock"HTTP/1.1"world//does not exist in the other SendString function
|method<>"GET"&&method<>"HEAD"&&method<>"POST"
#(sock,world)=SendDataToClientsock" 405 Method Not Allowed\r\nAllow: GET, HEAD, POST\r\nConnection: close\r\n\r\n"world//an Allow-field must be present with a 405 error -> RFC2616 section 14.7
=(0,HTTPdisconnectGracefulCsockworld)//does not exist in the other SendString function