Files
old-nasuh/handlers.h
2022-11-20 07:47:52 +01:00

28 lines
592 B
C

//
// Created by hamo on 11/19/22.
//
#include <microhttpd.h>
#include <stdlib.h>
#include <string.h>
#ifndef NASUH_HANDLERS_H
#define NASUH_HANDLERS_H
enum MHD_Result
handle_all(void * cls,
struct MHD_Connection * connection,
const char * url,
const char * method,
const char * version,
const char * upload_data,
size_t * upload_data_size,
void ** ptr);
#define INDEX "<html><head><title>nasuh search engine</title>"\
"</head><body>all your programming needs</body></html>"
#endif //NASUH_HANDLERS_H