diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/experimental/httpget.h | |
parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
download | libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2 libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip |
Converted tabs to spaces with tabconv.
Diffstat (limited to 'src/experimental/httpget.h')
-rw-r--r-- | src/experimental/httpget.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/experimental/httpget.h b/src/experimental/httpget.h index e8092e5..21e69d6 100644 --- a/src/experimental/httpget.h +++ b/src/experimental/httpget.h | |||
@@ -16,51 +16,51 @@ | |||
16 | 16 | ||
17 | namespace Bu | 17 | namespace Bu |
18 | { | 18 | { |
19 | class HttpGet : public Bu::Stream | 19 | class HttpGet : public Bu::Stream |
20 | { | 20 | { |
21 | public: | 21 | public: |
22 | HttpGet( const Bu::Url &uSrc, const Bu::String &sMethod="GET" ); | 22 | HttpGet( const Bu::Url &uSrc, const Bu::String &sMethod="GET" ); |
23 | virtual ~HttpGet(); | 23 | virtual ~HttpGet(); |
24 | 24 | ||
25 | void get(); | 25 | void get(); |
26 | 26 | ||
27 | // From Bu::Stream | 27 | // From Bu::Stream |
28 | virtual void close(); | 28 | virtual void close(); |
29 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); | 29 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); |
30 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); | 30 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); |
31 | using Stream::write; | 31 | using Stream::write; |
32 | 32 | ||
33 | virtual Bu::size tell(); | 33 | virtual Bu::size tell(); |
34 | virtual void seek( Bu::size offset ); | 34 | virtual void seek( Bu::size offset ); |
35 | virtual void setPos( Bu::size pos ); | 35 | virtual void setPos( Bu::size pos ); |
36 | virtual void setPosEnd( Bu::size pos ); | 36 | virtual void setPosEnd( Bu::size pos ); |
37 | virtual bool isEos(); | 37 | virtual bool isEos(); |
38 | virtual bool isOpen(); | 38 | virtual bool isOpen(); |
39 | 39 | ||
40 | virtual void flush(); | 40 | virtual void flush(); |
41 | 41 | ||
42 | virtual bool canRead(); | 42 | virtual bool canRead(); |
43 | virtual bool canWrite(); | 43 | virtual bool canWrite(); |
44 | 44 | ||
45 | virtual bool isReadable(); | 45 | virtual bool isReadable(); |
46 | virtual bool isWritable(); | 46 | virtual bool isWritable(); |
47 | virtual bool isSeekable(); | 47 | virtual bool isSeekable(); |
48 | 48 | ||
49 | virtual bool isBlocking(); | 49 | virtual bool isBlocking(); |
50 | virtual void setBlocking( bool bBlocking=true ); | 50 | virtual void setBlocking( bool bBlocking=true ); |
51 | 51 | ||
52 | virtual size getSize() const; | 52 | virtual size getSize() const; |
53 | virtual size getBlockSize() const; | 53 | virtual size getBlockSize() const; |
54 | virtual Bu::String getLocation() const; | 54 | virtual Bu::String getLocation() const; |
55 | 55 | ||
56 | private: | 56 | private: |
57 | Bu::Url uSrc; | 57 | Bu::Url uSrc; |
58 | Bu::String sMethod; | 58 | Bu::String sMethod; |
59 | Bu::TcpSocket sSrv; | 59 | Bu::TcpSocket sSrv; |
60 | typedef Bu::Hash<Bu::String,Bu::String> MimeHash; | 60 | typedef Bu::Hash<Bu::String,Bu::String> MimeHash; |
61 | MimeHash hMimeIn; | 61 | MimeHash hMimeIn; |
62 | MimeHash hMimeOut; | 62 | MimeHash hMimeOut; |
63 | }; | 63 | }; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | #endif | 66 | #endif |