tdlight/tdnet/td/net/DarwinHttp.h

23 lines
570 B
C
Raw Normal View History

2021-03-26 16:52:45 +01:00
//
2022-01-01 01:35:39 +01:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
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/actor/PromiseFuture.h"
#include "td/utils/buffer.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