Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.
HTTPResponse.h
00001 #ifndef SmartLab_MuRata_Response_HTTPResponse 00002 #define SmartLab_MuRata_Response_HTTPResponse 00003 00004 #include "Payload.h" 00005 #include <string> 00006 00007 using namespace std; 00008 00009 namespace SmartLabMuRata 00010 { 00011 class HTTPResponse: public Payload 00012 { 00013 private : 00014 int payloadOffset; 00015 int contentLength; 00016 int statusCode; 00017 string contentType; 00018 00019 public : 00020 HTTPResponse(Payload * payload); 00021 00022 /// <summary> 00023 /// Present only if Status code is HTTP status code. 00024 /// </summary> 00025 /// <returns></returns> 00026 bool isMoreDataComing(); 00027 00028 /// <summary> 00029 /// Present only if Status code is HTTP status code. 00030 /// </summary> 00031 /// <returns></returns> 00032 int GetContentLength(); 00033 00034 /// <summary> 00035 /// Status code can be either SNIC status code (which is less than 100) listed in Table 18, or HTTP status code defined in HTTP spec 1.1 (which is bigger than 100). 00036 /// </summary> 00037 /// <returns></returns> 00038 int GetStatusCode(); 00039 00040 /// <summary> 00041 /// Present only if Status code is HTTP status code. 00042 /// </summary> 00043 /// <param name="index"></param> 00044 /// <returns></returns> 00045 char GetContent(int index); 00046 00047 /// <summary> 00048 /// Present only if Status code is HTTP status code. 00049 /// </summary> 00050 /// <param name="index"></param> 00051 /// <returns></returns> 00052 const char * GetContent(); 00053 00054 /// <summary> 00055 /// Present only if Status code is HTTP status code. 00056 /// </summary> 00057 /// <returns></returns> 00058 string & GetContentType(); 00059 00060 /// <summary> 00061 /// Present only if Status code is HTTP status code. 00062 /// </summary> 00063 /// <returns></returns> 00064 int GetContentOffset(); 00065 }; 00066 } 00067 00068 #endif
Generated on Fri Jul 15 2022 01:02:11 by 1.7.2