21 lines
462 B
C++
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)
|