Embedded TCP/IP stack: fnet_http_post.h Source File

FNET

fnet_http_post.h
1 /**************************************************************************
2 *
3 * Copyright 2011-2016 by Andrey Butok. FNET Community.
4 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc.
5 *
6 ***************************************************************************
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may
9 * not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 ***************************************************************************
21 *
22 * FNET HTTP Server POST method API.
23 *
24 ***************************************************************************/
25 
26 #ifndef _FNET_HTTP_POST_H_
27 
28 #define _FNET_HTTP_POST_H_
29 
30 #if (FNET_CFG_HTTP && FNET_CFG_HTTP_POST && FNET_CFG_HTTP_VERSION_MAJOR)|| defined(__DOXYGEN__)
31 
35 /**************************************************************************/
62 typedef fnet_return_t(*fnet_http_post_handle_t)(fnet_http_session_t session, fnet_char_t *query, fnet_uint32_t *cookie);
63 
64 /**************************************************************************/
94 typedef fnet_return_t(*fnet_http_post_receive_t)(fnet_http_session_t session, fnet_uint8_t *buffer, fnet_size_t buffer_size, fnet_uint32_t *cookie);
95 
96 /**************************************************************************/
133 typedef fnet_size_t (*fnet_http_post_send_t)(fnet_uint8_t *buffer, fnet_size_t buffer_size, fnet_bool_t *eof, fnet_uint32_t *cookie);
134 
135 /**************************************************************************/
146 {
156 };
157 
160 #endif
161 
162 #endif
fnet_http_post_handle_t post_handle
Pointer to the POST query handler. It's optional.
fnet_return_t(* fnet_http_post_receive_t)(fnet_http_session_t session, fnet_uint8_t *buffer, fnet_size_t buffer_size, fnet_uint32_t *cookie)
Callback function prototype of the POST-method receive function.
fnet_return_t
General return codes, used by most of API functions.
Definition: fnet_stdlib.h:90
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
fnet_http_post_send_t post_send
Pointer to the POST response function. It's optional. This function actually creates dynamic content ...
fnet_return_t(* fnet_http_post_handle_t)(fnet_http_session_t session, fnet_char_t *query, fnet_uint32_t *cookie)
Callback function prototype of the POST-method query handler.
POST-method callback function table.
fnet_int32_t fnet_http_session_t
HTTP session handle.
Definition: fnet_http.h:216
fnet_http_post_receive_t post_receive
Pointer to the POST receive function. It's optional. This function can be invoked multiple times to p...
fnet_bool_t
Boolean type.
Definition: fnet_stdlib.h:81
fnet_size_t(* fnet_http_post_send_t)(fnet_uint8_t *buffer, fnet_size_t buffer_size, fnet_bool_t *eof, fnet_uint32_t *cookie)
Callback function prototype of the POST-method response function.
fnet_char_t * name
File name associated with the POST-request.
char fnet_char_t
Type representing the charecter.
Definition: fnet_stdlib.h:76

© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net