Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
NyLPC_cHttpdUtils.h
00001 /* 00002 * NyLPC_httpd_utils.h 00003 * 00004 * Created on: 2013/03/05 00005 * Author: nyatla 00006 */ 00007 00008 #ifndef NYLPC_HTTPD_UTILS_H_ 00009 #define NYLPC_HTTPD_UTILS_H_ 00010 00011 #include "NyLPC_stdlib.h" 00012 #include "NyLPC_http.h" 00013 #include "NyLPC_cHttpdConnection.h" 00014 #ifdef __cplusplus 00015 extern "C" { 00016 #endif /* __cplusplus */ 00017 00018 00019 /** 00020 * 固定長コンテンツを送信する。 00021 */ 00022 NyLPC_TBool NyLPC_cHttpdUtils_sendFixedContentBatch(NyLPC_TcHttpdConnection_t* i_connection,const NyLPC_TChar* i_content_type,const NyLPC_TChar* i_content,NyLPC_TUInt32 i_size); 00023 /** 00024 * 標準的なJsonヘッダを送信する。 00025 */ 00026 NyLPC_TBool NyLPC_cHttpdUtils_sendJsonHeader(NyLPC_TcHttpdConnection_t* i_connection); 00027 00028 /** 00029 * エラーコードを送信する。HEAD以外リクエストに対しては簡単なbodyを返却する。 00030 */ 00031 void NyLPC_cHttpdUtils_sendErrorResponse(NyLPC_TcHttpdConnection_t* i_connection,int i_status); 00032 00033 #ifdef __cplusplus 00034 } 00035 #endif /* __cplusplus */ 00036 #endif /* */
Generated on Tue Jul 12 2022 16:22:57 by
