bigsnitch/include/httpsender.h

22 lines
462 B
C
Raw Permalink Normal View History

2021-01-01 23:19:42 +00:00
#pragma once
#include <include/api.h>
#include <QObject>
namespace http {
2021-03-21 01:35:40 +00:00
#define HTTPSenderInterfaceIID "bigsnitch.api.HTTPInterceptorInterface/100"
2021-01-01 23:19:42 +00:00
2021-03-21 01:35:40 +00:00
class InterceptorInterface {
2021-01-01 23:19:42 +00:00
public:
2021-03-21 01:35:40 +00:00
virtual ~InterceptorInterface() = default;
2021-01-01 23:19:42 +00:00
virtual int send(http::Request request);
virtual bool received(int id);
virtual std::optional<http::Response> receive(int id);
};
}
2021-03-21 01:35:40 +00:00
Q_DECLARE_INTERFACE(http::InterceptorInterface, HTTPInterceptorInterfaceIID)