GNU libmicrohttpd  0.9.72
mhd_send.h
Go to the documentation of this file.
1 /*
2  This file is part of libmicrohttpd
3  Copyright (C) 2017, 2020 Karlson2k (Evgeny Grin)
4  Copyright (C) 2019 ng0
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with this library; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 */
21 
29 #ifndef MHD_SEND_H
30 #define MHD_SEND_H
31 
32 #include "platform.h"
33 #include "internal.h"
34 #if defined(HAVE_STDBOOL_H)
35 #include <stdbool.h>
36 #endif /* HAVE_STDBOOL_H */
37 #include <errno.h>
38 #include "mhd_sockets.h"
39 #include "connection.h"
40 #ifdef HTTPS_SUPPORT
41 #include "connection_https.h"
42 #endif
43 
44 #ifdef HAVE_FREEBSD_SENDFILE
48 void
49 MHD_send_init_static_vars_ (void);
50 
51 #endif /* HAVE_FREEBSD_SENDFILE */
52 
53 
68 ssize_t
69 MHD_send_data_ (struct MHD_Connection *connection,
70  const char *buffer,
71  size_t buffer_size,
72  bool push_data);
73 
74 
93 ssize_t
94 MHD_send_hdr_and_body_ (struct MHD_Connection *connection,
95  const char *header,
96  size_t header_size,
97  bool never_push_hdr,
98  const char *body,
99  size_t body_size,
100  bool complete_response);
101 
102 #if defined(_MHD_HAVE_SENDFILE)
109 ssize_t
110 MHD_send_sendfile_ (struct MHD_Connection *connection);
111 
112 #endif
113 
114 #endif /* MHD_SEND_H */
Methods for managing connections.
Methods for managing connections.
ssize_t MHD_send_hdr_and_body_(struct MHD_Connection *connection, const char *header, size_t header_size, bool never_push_hdr, const char *body, size_t body_size, bool complete_response)
Definition: mhd_send.c:789
ssize_t MHD_send_data_(struct MHD_Connection *connection, const char *buffer, size_t buffer_size, bool push_data)
Definition: mhd_send.c:662
internal shared structures
platform-specific includes for libmicrohttpd