1 /*********************************************************************************
\r
3 * --------------------------------------------------------------------------------
\r
5 * This file is part of MiMic
\r
6 * Copyright (C)2011 Ryo Iizuka
\r
8 * MiMic is free software: you can redistribute it and/or modify
\r
9 * it under the terms of the GNU Lesser General Public License as published
\r
10 * by the Free Software Foundation, either version 3 of the License, or
\r
11 * (at your option) any later version.
\r
13 * This program is distributed in the hope that it will be useful,
\r
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
16 * GNU General Public License for more details.
\r
18 * You should have received a copy of the GNU Lesser General Public License
\r
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
\r
21 * For further information please contact.
\r
23 * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>
\r
25 *********************************************************************************/
\r
26 #ifndef NYLPC_CMODSHORTURL_H_
\r
27 #define NYLPC_CMODSHORTURL_H_
\r
31 #endif /* __cplusplus */
\r
32 #include "../http/NyLPC_cHttpBasicHeaderParser.h"
\r
33 #include "NyLPC_cHttpdConnection.h"
\r
36 * URLが最大31文字までの、短いHttpリクエストを処理します。
\r
37 * このクラスは、NyLPC_TBasicHttpHeader_tにキャストできます。
\r
39 typedef struct NyLPC_TcModShortUrl NyLPC_TcModShortUrl_t;
\r
42 struct NyLPC_TcModShortUrl
\r
44 struct NyLPC_THttpShortRequestHeader _header;
\r
50 void NyLPC_cModShortUrl_initialize(NyLPC_TcModShortUrl_t* i_inst);
\r
51 void NyLPC_cModShortUrl_finalize(NyLPC_TcModShortUrl_t* i_inst);
\r
53 NyLPC_TBool NyLPC_cModShortUrl_parse(NyLPC_TcModShortUrl_t* i_inst,NyLPC_TcHttpdConnection_t* i_connection);
\r
56 * basicヘッダオブジェクトを返します。
\r
58 const struct NyLPC_THttpBasicHeader* NyLPC_cModShortUrl_getHeader(const NyLPC_TcModShortUrl_t* i_inst);
\r
60 * URLを返します。URL長は最大32文字です。
\r
62 const NyLPC_TChar* NyLPC_cModShortUrl_getPath(const NyLPC_TcModShortUrl_t* i_inst);
\r
66 NyLPC_TBool NyLPC_cModShortUrl_isEqualPath(const NyLPC_TcModShortUrl_t* i_inst,const NyLPC_TChar* i_path);
\r
71 NyLPC_THttpMethodType NyLPC_cModShortUrl_getMethod(const NyLPC_TcModShortUrl_t* i_inst);
\r
80 #endif /* __cplusplus */
\r
82 #endif /* NYLPC_CHTTPSHORTHTTPHEADERPARSER_H_ */
\r