13 lines
246 B
C
13 lines
246 B
C
#ifndef REQUEST_H
|
|
#define REQUEST_H
|
|
|
|
struct Request {
|
|
char *method; // GET, POST, ...
|
|
char *target; // /, /blog, /blog/post1, ...
|
|
char *version; // HTTP/1.1
|
|
};
|
|
|
|
struct Request request_constructor(char *raw_request);
|
|
|
|
#endif // !REQUEST_H
|