readr

Minimal Terminal RSS Reader
Log | Files | Refs | README | LICENSE

http.h (261B)


      1 #pragma once
      2 
      3 #include <stdlib.h>
      4 
      5 typedef struct {
      6 	char* data;
      7 	size_t len;
      8 	long status;
      9 	char* ctype;
     10 } http_blob;
     11 
     12 size_t http_write(char* ptr, size_t size, size_t nmemb, void* userdata);
     13 void* threaded_fetch(void* url);
     14 void http_blob_free(http_blob* b);