Added support for a request data type

master
Aadhavan Srinivasan 2 years ago
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;
}

@ -0,0 +1,3 @@
typedef struct Request_s Request;
Request* new_request(char* url,char* req_type);
Loading…
Cancel
Save