37typedef struct RESTClientInterface RESTClientInterface;
83struct RESTClientInterface {
88 ObjectInterface objectInterface;
110 void (*getAsync)(
RESTClient *self,
const char *url,
121 int (*head)(
RESTClient *self,
const char *url);
132 void (*headAsync)(
RESTClient *self,
const char *url,
155 void (*httpDeleteAsync)(
RESTClient *self,
const char *url,
197 void (*optionsAsync)(
RESTClient *self,
const char *url,
222 void (*patchAsync)(
RESTClient *self,
const char *url,
const Data *body,
247 void (*postAsync)(
RESTClient *self,
const char *url,
const Data *body,
272 void (*putAsync)(
RESTClient *self,
const char *url,
const Data *body,
Object is the root Class of The Objectively Class hierarchy.
OBJECTIVELY_EXPORT Class * _RESTClient(void)
#define OBJECTIVELY_EXPORT
A management context for loading resources via URLs.
void(* RESTClientCompletion)(int status, Data *data, void *user_data)
A completion handler for asynchronous RESTClient requests.
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.
An HTTP REST client backed by URLSession.
URLSession * session
The URLSession backing this client.
Object object
The superclass.
RESTClientInterface * interface
The interface.
A management context for loading resources via URLs.