bigsnitch/include/httpsender.h
Tim Blume 462f2811b9 foo
2021-03-21 02:35:40 +01:00

21 lines
462 B
C++

#pragma once
#include <include/api.h>
#include <QObject>
namespace http {
#define HTTPSenderInterfaceIID "bigsnitch.api.HTTPInterceptorInterface/100"
class InterceptorInterface {
public:
virtual ~InterceptorInterface() = default;
virtual int send(http::Request request);
virtual bool received(int id);
virtual std::optional<http::Response> receive(int id);
};
}
Q_DECLARE_INTERFACE(http::InterceptorInterface, HTTPInterceptorInterfaceIID)