File: http.h

package info (click to toggle)
rxp 1.5.0-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,544 kB
  • ctags: 1,377
  • sloc: ansic: 23,096; sh: 9,795; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef HTTP_H
#define HTTP_H

#include "charset.h"
#include "stdio16.h"
#include "rxputil.h"

struct http_header {
    char8 *name;
    char8 *value;
};

struct http_headers {
    Vector(struct http_header *, header);
};

int init_http(void);
void deinit_http(void);

FILE16 *http_open(const char *url, 
		  const char *host, int port, const char *path,
		  const char *type, char **redirected_url);

void http_set_user_agent(const char *agent);

#endif /* HTTP_H */