28 lines
592 B
C
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
|