Nebula
Toggle main menu visibility
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
//------------------------------------------------------------------------------
17
namespace
Http
18
{
19
class
HttpStream
:
public
IO::MemoryStream
20
{
21
__DeclareClass
(
HttpStream
);
22
public
:
24
HttpStream
();
26
virtual
~HttpStream
();
27
29
virtual
bool
Open
();
30
32
void
SetRetries
(
int
count);
34
int
GetRetries
()
const
;
35
36
private
:
37
// amount of retries for slow servers (503 responses)
38
int
retries
;
39
};
40
41
//------------------------------------------------------------------------------
44
inline
void
45
HttpStream::SetRetries
(
int
count)
46
{
47
this->
retries
= count;
48
}
49
50
//------------------------------------------------------------------------------
53
inline
int
54
HttpStream::GetRetries
()
const
55
{
56
return
this->
retries
;
57
}
58
59
}
// namespace Http
60
//------------------------------------------------------------------------------
Http::HttpStream::Open
virtual bool Open()
open the stream
Definition
httpstream.cc:38
Http::HttpStream::__DeclareClass
__DeclareClass(HttpStream)
Http::HttpStream::~HttpStream
virtual ~HttpStream()
destructor
Definition
httpstream.cc:26
Http::HttpStream::HttpStream
HttpStream()
constructor
Definition
httpstream.cc:17
Http::HttpStream::SetRetries
void SetRetries(int count)
Definition
httpstream.h:45
Http::HttpStream::GetRetries
int GetRetries() const
Definition
httpstream.h:54
Http::HttpStream::retries
int retries
Definition
httpstream.h:38
IO::MemoryStream
Implements a stream class which writes to and reads from system RAM.
Definition
memorystream.h:19
config.h
Nebula compiler specific defines and configuration.
httpclient.h
memorystream.h
Http
This file was generated with Nebula Trifid's idlc compiler tool.
Definition
defaulthttprequesthandler.cc:15
code
foundation
http
httpstream.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.