1#ifndef RESTLINK_ABSTRACTREQUESTHANDLER_H
2#define RESTLINK_ABSTRACTREQUESTHANDLER_H
4#include <RestLink/global.h>
6#include <QtCore/qscopedpointer.h>
13class AbstractRequestInterceptor;
15class AbstractRequestHandlerPrivate;
39 virtual QString handlerName()
const;
49 QList<AbstractRequestInterceptor *> requestInterceptors()
const;
59 bool isRequestSupported(
const Request &request)
const;
63 QScopedPointer<AbstractRequestHandlerPrivate>
d_ptr;
The AbstractRequestHandler class defines an abstract base for sending HTTP-like requests.
Definition abstractrequesthandler.h:17
QScopedPointer< AbstractRequestHandlerPrivate > d_ptr
Definition abstractrequesthandler.h:63
virtual QStringList supportedSchemes() const =0
virtual HandlerType handlerType() const =0
HandlerType
Describes the type of request handler being used.
Definition abstractrequesthandler.h:30
@ ServerHandler
Definition abstractrequesthandler.h:32
@ NetworkManager
Definition abstractrequesthandler.h:31
Method
Defines supported HTTP methods for handling outgoing requests.
Definition abstractrequesthandler.h:19
@ PatchMethod
Definition abstractrequesthandler.h:24
@ PutMethod
Definition abstractrequesthandler.h:23
@ GetMethod
Definition abstractrequesthandler.h:21
@ HeadMethod
Definition abstractrequesthandler.h:20
@ PostMethod
Definition abstractrequesthandler.h:22
@ DeleteMethod
Definition abstractrequesthandler.h:25
virtual Response * sendRequest(Method method, const Request &request, const Body &body)=0
Interface for intercepting and modifying HTTP requests and their bodies before dispatch.
Definition abstractrequestinterceptor.h:12
Represents the body of an HTTP request.
Definition body.h:27
A class for storing and managing HTTP request information.
Definition request.h:25
Represents a response to an API request in the RestLink framework.
Definition response.h:23
Definition abstractrequesthandler.cpp:11