6 void respond(void *object
, const Request_Info
*request_info
, int socket
)
8 #define put(s) write(socket, s, strlen(s))
10 if (request_info
->query_string_decoded
!= NULL
) {
11 put(request_info
->query_string_decoded
);
14 if (request_info
->path_info
!= NULL
) {
15 put(request_info
->path_info
);
18 if (request_info
->script_path
!= NULL
) {
19 put(request_info
->script_path
);
22 if (request_info
->tls_client_hash
!= NULL
) {
23 put(request_info
->tls_client_hash
);
28 int main(int argc
, const char **argv
)
30 runSCGI("/tmp/gemscgi_testsocket", respond
, NULL
);