glitchedhttps
include
glitchedhttps_header.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_HEADER_H
23
#define GLITCHEDHTTPS_HEADER_H
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
#include "
glitchedhttps_api.h
"
30
#include <stddef.h>
31
35
struct
glitchedhttps_header
36
{
41
char
*
type
;
42
47
char
*
value
;
48
};
49
59
GLITCHEDHTTPS_API
struct
glitchedhttps_header
*
glitchedhttps_header_init
(
const
char
*
type
,
size_t
type_length,
const
char
*
value
,
size_t
value_length);
60
65
GLITCHEDHTTPS_API
void
glitchedhttps_header_free
(
struct
glitchedhttps_header
* header);
66
67
#ifdef __cplusplus
68
}
// extern "C"
69
#endif
70
71
#endif
// GLITCHEDHTTPS_HEADER_H
glitchedhttps_api.h
API macro for dllexport/dllimport.
glitchedhttps_header_init
GLITCHEDHTTPS_API struct glitchedhttps_header * glitchedhttps_header_init(const char *type, size_t type_length, const char *value, size_t value_length)
glitchedhttps_header_free
GLITCHEDHTTPS_API void glitchedhttps_header_free(struct glitchedhttps_header *header)
glitchedhttps_header
HTTP request (or response) header (for example: type="Authorization" ; value="Basic YWxhZGRpbjpvcGVuc...
Definition:
glitchedhttps_header.h:36
glitchedhttps_header::type
char * type
Definition:
glitchedhttps_header.h:41
glitchedhttps_header::value
char * value
Definition:
glitchedhttps_header.h:47
Generated by
1.9.2