glitchedhttps
glitchedhttps_method.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_METHOD_H
23#define GLITCHEDHTTPS_METHOD_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include <stddef.h>
30#include "glitchedhttps_api.h"
31
37{
38 GLITCHEDHTTPS_GET = 0,
39 GLITCHEDHTTPS_HEAD = 1,
40 GLITCHEDHTTPS_POST = 2,
41 GLITCHEDHTTPS_PATCH = 3,
42 GLITCHEDHTTPS_PUT = 4,
43 GLITCHEDHTTPS_DELETE = 5,
44 GLITCHEDHTTPS_CONNECT = 6,
45 GLITCHEDHTTPS_OPTIONS = 7,
46 GLITCHEDHTTPS_TRACE = 8
47};
48
57GLITCHEDHTTPS_API int glitchedhttps_method_to_string(enum glitchedhttps_method method, char* out, size_t out_size);
58
59#ifdef __cplusplus
60} // extern "C"
61#endif
62
63#endif // GLITCHEDHTTPS_METHOD_H
API macro for dllexport/dllimport.
glitchedhttps_method
HTTP Method to use for a glitchedhttps_request.
Definition: glitchedhttps_method.h:37
GLITCHEDHTTPS_API int glitchedhttps_method_to_string(enum glitchedhttps_method method, char *out, size_t out_size)