This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers NyLPC_cHttpdUtils.h Source File

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 /*  */