Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Internal http server structure. You should not call it directly, use API instead ! More...
Public Member Functions | |
stdhttpsrv (HTTPserver) | |
stdhttpsrvcb (fun[STD_HTTP_SERVER_REQUEST] S) | |
stdhttpsrvcb2 (fun[STD_HTTP_SERVER_REQUEST] I) | |
stdhttpsrvheader (S) | |
stdhttpsrvid (I) | |
stdhttpsrvlogged (I) | |
stdhttpsrvmaxsizepost (I) | |
stdhttpsrvport (I) | |
stdhttpsrvreqn (I) | |
stdhttpsrvreqs ([STD_HTTP_SERVER_REQUEST r1]) | |
stdhttpsrvtype (I) | |
Internal http server structure. You should not call it directly, use API instead !
stdhttpsrvid | ( | I | ) |
Id number
stdhttpsrv | ( | HTTPserver | ) |
http server Scol object
stdhttpsrvtype | ( | I | ) |
synchronous (STD_HTTPSRV_SYNC) or asynchronous (STD_HTTPSRV_ASYNC)
stdhttpsrvport | ( | I | ) |
tcp-ip port number (80 by default)
stdhttpsrvcb | ( | fun | S[STD_HTTP_SERVER_REQUEST] | ) |
callback called when a request is received
stdhttpsrvcb2 | ( | fun | I[STD_HTTP_SERVER_REQUEST] | ) |
callback called when a connection is accepted
stdhttpsrvheader | ( | S | ) |
http header for the response, by default is "HTTP/1.0 200 OK\13\10Server (SCOL HTTP server);\13\10Content-Type (text);/html\13\10\13\10"
stdhttpsrvmaxsizepost | ( | I | ) |
max size of a POST request. If larger, the request will be ignored
stdhttpsrvlogged | ( | I | ) |
the srv activity is logged (1) or not (0, default)
stdhttpsrvreqs | ( | ) |
opened connections list
stdhttpsrvreqn | ( | I | ) |
total number of received request from the starter of the server, nil if "infinite"