Added support for a request data type
parent
833e1027cc
commit
deaea2ebdc
@ -0,0 +1,16 @@
|
|||||||
|
#include "stdlib.h"
|
||||||
|
|
||||||
|
#include "url.h"
|
||||||
|
#include "request.h"
|
||||||
|
|
||||||
|
struct Request_s {
|
||||||
|
URL* url;
|
||||||
|
char* req_type;
|
||||||
|
};
|
||||||
|
|
||||||
|
Request* new_Request(char* url_str,char* req_type_str) {
|
||||||
|
Request* req = malloc(sizeof(struct Request_s));
|
||||||
|
req->url = new_url(url_str);
|
||||||
|
req->req_type = req_type_str;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue