This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
ModUrl.h
00001 #pragma once 00002 //////////////////////////////////////////////////////////////////////////////// 00003 // ModRomFiles.h 00004 //////////////////////////////////////////////////////////////////////////////// 00005 00006 #include "NyLPC_net.h" 00007 00008 00009 namespace MiMic 00010 { 00011 class HttpdConnection; 00012 /** 00013 * This class is a module for Httpd. 00014 * The class parses a request path to buffer from connection. 00015 */ 00016 class ModUrl 00017 { 00018 private: 00019 int _method_type; 00020 public: 00021 const static int METHOD_GET =NyLPC_THttpMethodType_GET; 00022 const static int METHOD_HEAD=NyLPC_THttpMethodType_HEAD; 00023 const static int METHOD_POST=NyLPC_THttpMethodType_POST; 00024 public: 00025 /** 00026 * Constructor. 00027 */ 00028 ModUrl(); 00029 virtual ~ModUrl(); 00030 00031 /** 00032 * This function processes a request. 00033 * @param i_connection 00034 * @param o_url_buf 00035 * Output parametor. 00036 * Address of buffer which accept URL string. 00037 * The string will be "" (zero text) if URL too long or parsing failed. 00038 * @param i_buf_len 00039 * Size of o_url buffer in byte. 00040 * @param o_method_type 00041 * Address of variable which accept HTTP-Method type. 00042 * Can be omitted. 00043 * @return 00044 * TRUE if request was processed. otherwise FALSE. 00045 * The value describes processing status. It is not parsing error status. 00046 */ 00047 bool execute(HttpdConnection& i_connection,char* o_url_buf,int i_buf_len,int* o_method_type=NULL); 00048 }; 00049 00050 }
Generated on Tue Jul 12 2022 15:46:15 by 1.7.2