#ifndef CGI_H_
#define CGI_H_

#include <stdbool.h>

#include "flag_control.h"
#include "structures.h"

bool starts_with_cgibin(const char* string);
void convert_http_to_cgi_request(REQUEST* request, CGI* cgi,
                                 struct flag_control* fc);
int exec_cgi_and_respond(REQUEST* request, CGI* cgi, bool headers_only);

#endif