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

http-response.c

Blame
  • http-response.c 395 B
    #include <errno.h>
    #include <stdbool.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <assert.h>
    #include "http-parser.h"
    #include "http-response.h"
    
    #define MAX_URL_SIZE 60
    #define MAX_HEADER_SIZE 300
    #define MAX_VERSION_SIZE 10
    
    Response* redirect(Request* request_message){
        
    }
    
    void free_response(Response* resp){
        free_hash_table(resp->header);
        free(resp);
    }