Browse Subversion Repository
Contents of /http/HttpAccess.h
Parent Directory
| Revision Log
Revision 244 -
( show annotations)
( download)
( as text)
Sun Feb 17 05:59:24 2008 UTC
(16 years, 1 month ago)
by satofumi
File MIME type: text/x-chdr
File size: 611 byte(s)
add html/HttpAccess.cpp
| 1 |
#ifndef HTTP_ACCESS_H |
| 2 |
#define HTTP_ACCESS_H |
| 3 |
|
| 4 |
/*! |
| 5 |
\file |
| 6 |
\brief HTTP アクセス |
| 7 |
|
| 8 |
\author Satofumi KAMIMURA |
| 9 |
|
| 10 |
$Id$ |
| 11 |
*/ |
| 12 |
|
| 13 |
#include <memory> |
| 14 |
#include <vector> |
| 15 |
|
| 16 |
|
| 17 |
namespace beego { |
| 18 |
class HttpAccess { |
| 19 |
HttpAccess(void); |
| 20 |
HttpAccess(const HttpAccess& rhs); |
| 21 |
HttpAccess& operator = (const HttpAccess& rhs); |
| 22 |
|
| 23 |
struct pImpl; |
| 24 |
pImpl* pimpl; |
| 25 |
|
| 26 |
public: |
| 27 |
enum { |
| 28 |
DefaultPort = 80, |
| 29 |
}; |
| 30 |
HttpAccess(const char* server, long port = DefaultPort); |
| 31 |
~HttpAccess(void); |
| 32 |
const char* what(void); |
| 33 |
|
| 34 |
bool get(std::vector<char>& page, const char* address); |
| 35 |
}; |
| 36 |
}; |
| 37 |
|
| 38 |
#endif /* !HTTP_ACCESS_H */ |
|