Nebula
Loading...
Searching...
No Matches
httpstream.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "core/config.h"
13#include "io/memorystream.h"
14#include "http/httpclient.h"
15
16//------------------------------------------------------------------------------
17namespace Http
18{
20{
22public:
24 HttpStream();
26 virtual ~HttpStream();
27
29 virtual bool Open();
30
32 void SetRetries(int count);
34 int GetRetries() const;
35
36private:
37 // amount of retries for slow servers (503 responses)
39};
40
41//------------------------------------------------------------------------------
44inline void
46{
47 this->retries = count;
48}
49
50//------------------------------------------------------------------------------
53inline int
55{
56 return this->retries;
57}
58
59} // namespace Http
60//------------------------------------------------------------------------------
Wraps client HTTP requests to a HTTP server into an IO::Stream.
Definition httpstream.h:20
virtual bool Open()
open the stream
Definition httpstream.cc:38
__DeclareClass(HttpStream)
virtual ~HttpStream()
destructor
Definition httpstream.cc:26
HttpStream()
constructor
Definition httpstream.cc:17
void SetRetries(int count)
Definition httpstream.h:45
int GetRetries() const
Definition httpstream.h:54
int retries
Definition httpstream.h:38
Implements a stream class which writes to and reads from system RAM.
Definition memorystream.h:19
Nebula compiler specific defines and configuration.
This file was generated with Nebula Trifid's idlc compiler tool.
Definition defaulthttprequesthandler.cc:15