Project

General

Profile

Scol standard library package  0.3.1
Common and usefull functions for all Scol applications
STD_HTTP_SERVER Struct Reference

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)

Detailed Description

Internal http server structure. You should not call it directly, use API instead !

Member Function Documentation

stdhttpsrvid ( )

Id number

stdhttpsrv ( HTTPserver  )

http server Scol object

stdhttpsrvtype ( )

synchronous (STD_HTTPSRV_SYNC) or asynchronous (STD_HTTPSRV_ASYNC)

stdhttpsrvport ( )

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 ( )

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 ( )

max size of a POST request. If larger, the request will be ignored

stdhttpsrvlogged ( )

the srv activity is logged (1) or not (0, default)

stdhttpsrvreqs ( )

opened connections list

stdhttpsrvreqn ( )

total number of received request from the starter of the server, nil if "infinite"


The documentation for this struct was generated from the following file: