~jason2605/dictu/package

« back to all changes in this revision

Viewing changes to src/optionals/http.h

  • Committer: jasonhall96686 at gmail
  • Date: 2021-01-04 20:33:43 UTC
  • Revision ID: jasonhall96686@gmail.com-20210104203343-ldo9uscht0ifjc0a
Tags: upstream-0.15.0
ImportĀ upstreamĀ versionĀ 0.15.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef dictu_http_h
2
 
#define dictu_http_h
3
 
 
4
 
#ifndef DISABLE_HTTP
5
 
#include <curl/curl.h>
6
 
#endif
7
 
 
8
 
#include "optionals.h"
9
 
#include "../vm/vm.h"
10
 
 
11
 
typedef struct response {
12
 
    DictuVM *vm;
13
 
    ObjList *headers;
14
 
    char *res;
15
 
    size_t len;
16
 
    long statusCode;
17
 
} Response;
18
 
 
19
 
ObjModule *createHTTPModule(DictuVM *vm);
20
 
 
21
 
#endif //dictu_http_h
 
 
b'\\ No newline at end of file'