mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-28 23:42:52 -05:00
Added ISteamHTTP
This commit is contained in:
31
static/smoke_api/interfaces/steam_http.hpp
Normal file
31
static/smoke_api/interfaces/steam_http.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include "smoke_api/types.hpp"
|
||||
|
||||
namespace smoke_api::steam_http {
|
||||
bool GetHTTPResponseBodyData(
|
||||
const std::string& function_name,
|
||||
HTTPRequestHandle hRequest,
|
||||
const uint8_t* pBodyDataBuffer,
|
||||
uint32_t unBufferSize,
|
||||
const std::function<bool()>& original_function
|
||||
) noexcept;
|
||||
|
||||
bool GetHTTPStreamingResponseBodyData(
|
||||
const std::string& function_name,
|
||||
HTTPRequestHandle hRequest,
|
||||
uint32_t cOffset,
|
||||
const uint8_t* pBodyDataBuffer,
|
||||
uint32_t unBufferSize,
|
||||
const std::function<bool()>& original_function
|
||||
) noexcept;
|
||||
|
||||
bool SetHTTPRequestRawPostBody(
|
||||
const std::string& function_name,
|
||||
HTTPRequestHandle hRequest,
|
||||
const char* pchContentType,
|
||||
const uint8_t* pubBody,
|
||||
uint32_t unBodyLen,
|
||||
const std::function<bool()>& original_function
|
||||
) noexcept;
|
||||
}
|
||||
Reference in New Issue
Block a user