glitchedhttps
glitchedhttps.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
44#ifndef GLITCHEDHTTPS_H
45#define GLITCHEDHTTPS_H
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
51#include "glitchedhttps_api.h"
55
59#define GLITCHEDHTTPS_VERSION 100
60
64#define GLITCHEDHTTPS_VERSION_STR "1.0.0"
65
66#ifndef GLITCHEDHTTPS_STACK_BUFFERSIZE
70#define GLITCHEDHTTPS_STACK_BUFFERSIZE 8192
71#endif
72
79GLITCHEDHTTPS_API int glitchedhttps_init();
80
86GLITCHEDHTTPS_API void glitchedhttps_free();
87
95GLITCHEDHTTPS_API int glitchedhttps_submit(const struct glitchedhttps_request* request, struct glitchedhttps_response** out);
96
97#ifdef __cplusplus
98} // extern "C"
99#endif
100
101#endif // GLITCHEDHTTPS_H
GLITCHEDHTTPS_API int glitchedhttps_submit(const struct glitchedhttps_request *request, struct glitchedhttps_response **out)
GLITCHEDHTTPS_API int glitchedhttps_init()
GLITCHEDHTTPS_API void glitchedhttps_free()
API macro for dllexport/dllimport.
Exit codes returned by the various glitchedhttps functions.
Struct containing an HTTP request's parameters and headers.
Struct containing an HTTP response's data.
Struct containing an HTTP request's parameters and headers.
Definition: glitchedhttps_request.h:38
Struct containing an HTTP response's data.
Definition: glitchedhttps_response.h:36