glitchedhttps
glitchedhttps_response.h
Go to the documentation of this file.
1/*
2 Copyright 2020 Raphael Beck
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
22#ifndef GLITCHEDHTTPS_RESPONSE_H
23#define GLITCHEDHTTPS_RESPONSE_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include "glitchedhttps_api.h"
31
36{
39
41 char* raw;
42
44 char* server;
45
47 char* date;
48
51
54
56 char* content;
57
60
63
66};
67
72GLITCHEDHTTPS_API void glitchedhttps_response_free(struct glitchedhttps_response* response);
73
74#ifdef __cplusplus
75} // extern "C"
76#endif
77
78#endif // GLITCHEDHTTPS_RESPONSE_H
API macro for dllexport/dllimport.
HTTP request (or response) header (for example: type="Authorization" ; value="Basic YWxhZGRpbjpvcGVuc...
GLITCHEDHTTPS_API void glitchedhttps_response_free(struct glitchedhttps_response *response)
HTTP request (or response) header (for example: type="Authorization" ; value="Basic YWxhZGRpbjpvcGVuc...
Definition: glitchedhttps_header.h:36
Struct containing an HTTP response's data.
Definition: glitchedhttps_response.h:36
char * content
Definition: glitchedhttps_response.h:56
char * date
Definition: glitchedhttps_response.h:47
char * server
Definition: glitchedhttps_response.h:44
size_t headers_count
Definition: glitchedhttps_response.h:65
size_t content_length
Definition: glitchedhttps_response.h:59
struct glitchedhttps_header * headers
Definition: glitchedhttps_response.h:62
char * content_encoding
Definition: glitchedhttps_response.h:53
char * content_type
Definition: glitchedhttps_response.h:50
char * raw
Definition: glitchedhttps_response.h:41
int status_code
Definition: glitchedhttps_response.h:38