acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
http_acme.h
1
//
2
// Created by camilo on 2024-10-28 23:49 <3ThomasBorregaardSorensen!!
3
//
4
#pragma once
5
6
7
namespace
platform
8
{
9
10
11
struct
CLASS_DECL_ACME
acme_http_layer_t
12
{
13
14
::property_set
m_setHttp;
15
16
};
17
18
19
class
CLASS_DECL_ACME
acme_http_layer
20
{
21
public
:
22
23
24
virtual
bool
exists(const ::url::url& url,
::property_set
& set);
25
26
27
virtual ::file::enum_type get_type(const ::url::url& url,
::property_set
& set);
28
29
30
virtual ::file::enum_type get_type(const ::url::url& url,
::payload
* pvarQuery,
::property_set
& set);
31
32
33
virtual ::string get(const ::url::url& url,
const
class ::time& timeTimeout = 5_min);
34
35
36
virtual ::string get(const ::url::url& url,
::property_set
& set,
const
class ::time& timeTimeout = 5_min);
37
38
39
virtual ::url::url get_effective_url(const ::url::url& url,
::property_set
& set);
40
41
42
//virtual void http_sync(::nano::http::get * defer_get);
43
//virtual void http_async(::nano::http::get * defer_get, const ::function < void(::nano::http::get *) > & callback);
44
45
46
virtual
void
download(const ::payload& payloadFile, const ::url::url& url,
const
class ::time& timeTimeout = 5_h);
47
48
49
virtual
void
download(const ::payload& payloadFile, const ::url::url& url,
::property_set
& set,
50
const
class ::time& timeTimeout = 5_h);
51
52
virtual
bool
put(const ::url::url & url,
memory_base
&
memory
,
::property_set
& set);
53
virtual
bool
put(const ::url::url & url, file_pointer pfile,
::property_set
& set);
54
virtual
bool
put(const ::url::url & url,
memory_base
* pmemory,
::property_set
& set);
55
//virtual bool put(const ::url::url & url, file_pointer pfile, ::property_set & set);
56
57
//virtual ::url::url get_effective_url(const ::url::url & url);
58
59
60
};
61
62
63
}
memory_base
Definition
memory_base.h:92
memory
Definition
memory.h:33
payload
Definition
payload.h:54
platform::acme_http_layer
Definition
http_acme.h:20
property_set
Definition
property_set.h:512
platform
include "thread/AutoLock.h"
Definition
_forward_declaration.h:877
platform::acme_http_layer_t
Definition
http_acme.h:12
platform
http_acme.h
Generated by
1.17.0