Skip to content
Snippets Groups Projects
Select Git revision
  • 22b800d829b30836d06eb44a2bbe78300c83809c
  • master default protected
  • feat/cookie
  • feat/keyword
4 results

http-response.h

Blame
  • http-response.h 430 B
    #include <stdbool.h>
    #include "hashtable.h"
    
    typedef struct Response {
        int status_code;
        char *version;
        HashTable *header;
        char* phrase;
        char *body;
    } Response;
    
    
    //Creates a new hash table of input size
    Response *redirect(Request *req, char* url_string);
    
    char* parse_response(Response* response);
    
    char* cookie_generator();
    
    void free_response(Response* resp);
    
    Response* initialise_session(Request* request);