37typedef struct RESTClientInterface RESTClientInterface;
84struct RESTClientInterface {
89 ObjectInterface objectInterface;
115 void (*delAsync)(
RESTClient *self,
const char *url,
const char **headers,
142 void (*getAsync)(
RESTClient *self,
const char *url,
const char **headers,
155 int (*head)(
RESTClient *self,
const char *url,
const char **headers);
168 void (*headAsync)(
RESTClient *self,
const char *url,
const char **headers,
214 void (*optionsAsync)(
RESTClient *self,
const char *url,
const char **headers,
243 void (*patchAsync)(
RESTClient *self,
const char *url,
const Data *body,
const char **headers,
272 void (*postAsync)(
RESTClient *self,
const char *url,
const Data *body,
const char **headers,
301 void (*putAsync)(
RESTClient *self,
const char *url,
const Data *body,
const char **headers,
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 *userData)
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.
RESTClientInterface * interface[0]
The interface type.
URLSession * session
The URLSession backing this client.
Object object
The superclass.
A management context for loading resources via URLs.