acme
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages Concepts
http.h
1//
2// Created by camilo on 2024-10-24 19:05 <3ThomasBorregaardSorensen
3//
4#pragma once
5
6
7#include "http_acme.h"
8#include "http_apex.h"
9#include "acme/platform/department.h"
10
11
12namespace platform
13{
14
15
16 class CLASS_DECL_ACME http :
17 virtual public ::acme::department,
18 virtual public ::platform::acme_http_layer_t,
19 virtual public ::platform::apex_http_layer_t,
20 virtual public ::platform::acme_http_layer,
21 virtual public ::platform::apex_http_layer
22 {
23 public:
24
25
26 // ::property_set m_setHttp;
27
28
29 http();
30 ~http() override;
31
32
33 virtual bool exists(const ::url::url& url, ::property_set& set) override;
34
35
36 virtual ::file::enum_type get_type(const ::url::url& url, property_set& set) override;
37
38
39 virtual ::file::enum_type get_type(const ::url::url& url, ::payload* pvarQuery, property_set& set) override;
40
41
42 using ::platform::apex_http_layer::get;
43 virtual ::string get(const ::url::url& url, const class ::time& timeTimeout = 5_min) override;
44
45
46 virtual ::string get(const ::url::url& url, ::property_set& set, const class ::time& timeTimeout = 5_min) override;
47
48
49 virtual ::url::url get_effective_url(const ::url::url& url) override;
50
51
52 //virtual void http_sync(::nano::http::get * pget);
53 //virtual void http_async(::nano::http::get * pget, const ::function < void(::nano::http::get *) > & callback);
54
55
56 virtual void download(const ::payload& payloadFile, const ::url::url& url, const class ::time& timeTimeout = 5_h) override;
57
58
59 virtual void download(const ::payload& payloadFile, const ::url::url& url, ::property_set& set,
60 const class ::time& timeTimeout = 5_h) override;
61
62 virtual bool put(const ::url::url & url, memory_base & memory, property_set & set) override;
63 virtual bool put(const ::url::url & url, file_pointer pfile, property_set & set) override;
64 virtual bool put(const ::url::url & url, memory_base * pmemory, property_set & set) override;
65 //virtual bool put(const ::url::url & url, file_pointer pfile, property_set & set);
66
67 //virtual ::url::url get_effective_url(const ::url::url & url);
68
69
70 };
71
72
73} // namespace platform
74
75
76
Definition department.h:13
Definition memory_base.h:96
Definition memory.h:33
Definition http_acme.h:20
Definition http_apex.h:20
Definition property_set.h:17
Definition http_acme.h:12
Definition http_apex.h:12