MCPcopy Create free account
hub / github.com/Siv3D/OpenSiv3D / Get

Function Get

Siv3D/src/Siv3D/SimpleHTTP/SivSimpleHTTP.cpp:75–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 HTTPResponse Get(const URLView url, const HashTable<String, String>& headers, const FilePathView filePath)
76 {
77 SIV3D_ENGINE(Network)->init();
78
79 BinaryWriter writer{ filePath };
80 {
81 if (not writer)
82 {
83 return{};
84 }
85 }
86
87 if (auto result = Get(url, headers, static_cast<IWriter&>(writer)))
88 {
89 return result;
90 }
91
92 writer.close();
93 FileSystem::Remove(filePath);
94 return{};
95 }
96
97 HTTPResponse Get(const URLView url, const HashTable<String, String>& headers, MemoryWriter& writer)
98 {

Callers 15

SaveFunction · 0.70
LoadFunction · 0.70
GetFirstMethod · 0.50
GetLastMethod · 0.50
~SkImageFilter_BaseMethod · 0.50
PurgeCacheMethod · 0.50
AddMethod · 0.50
FindByProcAndRefMethod · 0.50
PurgeAllMethod · 0.50
DumpMethod · 0.50
InboxMethod · 0.50
~InboxMethod · 0.50

Calls 8

ToUTF8Function · 0.85
RemoveFunction · 0.50
initMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45
isOpenMethod · 0.45
toUTF8Method · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected