INET Framework for OMNeT++/OMNEST
HttpUtils.h File Reference
#include <vector>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "inet/applications/httptools/common/HttpMessages_m.h"

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::httptools
 

Functions

std::string inet::httptools::trimLeft (std::string s)
 
std::string inet::httptools::trimRight (std::string s)
 
std::string inet::httptools::trimLeft (std::string str, std::string delim)
 
std::string inet::httptools::trimRight (std::string str, std::string delim)
 
std::string inet::httptools::trim (std::string str)
 
std::string inet::httptools::extractServerName (const char *url)
 
std::string inet::httptools::extractResourceName (const char *url)
 
std::string inet::httptools::getDelimited (std::string str, std::string ldelim, std::string rdelim)
 
std::vector< std::string > inet::httptools::parseResourceName (std::string resource)
 
HttpContentType inet::httptools::getResourceCategory (std::vector< std::string > res)
 
HttpContentType inet::httptools::getResourceCategory (std::string resourceExt)
 
std::string inet::httptools::htmlErrFromCode (int code)
 
double inet::httptools::safeatof (const char *strval, double defaultVal)
 
int inet::httptools::safeatoi (const char *strval, int defaultVal)
 
int inet::httptools::safeatobool (const char *strval, bool defaultVal)
 
std::vector< std::string > inet::httptools::splitFile (std::string fileName)