tdlight/tdnet/td/net/DarwinHttp.h

22 lines
563 B
C
Raw Normal View History

2021-03-26 16:52:45 +01:00
//
2024-01-01 01:07:21 +01:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024
2021-03-26 16:52:45 +01:00
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
2021-03-26 16:04:01 +01:00
#pragma once
#include "td/utils/buffer.h"
2022-06-27 12:30:18 +02:00
#include "td/utils/Promise.h"
2021-03-26 16:52:45 +01:00
#include "td/utils/Slice.h"
2021-03-26 16:04:01 +01:00
namespace td {
2021-03-26 16:52:45 +01:00
2021-03-26 16:04:01 +01:00
class DarwinHttp {
public:
static void get(CSlice url, Promise<BufferSlice> promise);
static void post(CSlice url, Slice data, Promise<BufferSlice> promise);
};
2021-03-26 16:52:45 +01:00
2021-03-26 16:04:01 +01:00
} // namespace td