GNU libmicrohttpd
0.9.73
response_options.c
Go to the documentation of this file.
1
/*
2
This file is part of libmicrohttpd
3
Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
25
#include "
internal.h
"
26
27
35
void
36
MHD_response_option_v10_only
(
struct
MHD_Response
*response)
37
{
38
response->
v10_only
=
true
;
39
}
40
41
50
void
51
MHD_response_option_termination_callback
(
struct
MHD_Response
*response,
52
MHD_RequestTerminationCallback
53
termination_cb
,
54
void
*
termination_cb_cls
)
55
{
56
/* Q: should we assert termination_cb non-NULL? */
57
response->
termination_cb
=
termination_cb
;
58
response->
termination_cb_cls
=
termination_cb_cls
;
59
}
60
61
62
/* end of response_option.c */
MHD_Response::v10_only
bool v10_only
Definition:
internal.h:1685
MHD_response_option_v10_only
void MHD_response_option_v10_only(struct MHD_Response *response)
Definition:
response_options.c:36
internal.h
internal shared structures
MHD_Response::termination_cb
MHD_RequestTerminationCallback termination_cb
Definition:
internal.h:1612
MHD_Response::termination_cb_cls
void * termination_cb_cls
Definition:
internal.h:1617
MHD_Response
Definition:
internal.h:1568
MHD_response_option_termination_callback
void MHD_response_option_termination_callback(struct MHD_Response *response, MHD_RequestTerminationCallback termination_cb, void *termination_cb_cls)
Definition:
response_options.c:51
src
lib
response_options.c
Generated by
1.8.20