Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
Data Structures | Functions
URLResponse.h File Reference

A protocol-agnostic abstraction for receiving resources via URLs. More...

#include <Objectively/Dictionary.h>
#include <Objectively/Object.h>

Go to the source code of this file.

Data Structures

struct  URLResponse
 A protocol-agnostic abstraction for URLSessionTask responses. More...
 

Functions

OBJECTIVELY_EXPORT Class_URLResponse (void)
 

Detailed Description

A protocol-agnostic abstraction for receiving resources via URLs.

Definition in file URLResponse.h.

Function Documentation

◆ _URLResponse()

OBJECTIVELY_EXPORT Class * _URLResponse ( void  )

Definition at line 111 of file URLResponse.c.

111 {
112 static Class *clazz;
113 static Once once;
114
115 do_once(&once, {
116 clazz = _initialize(&(const ClassDef) {
117 .name = "URLResponse",
118 .superclass = _Object(),
119 .instanceSize = sizeof(URLResponse),
120 .interfaceOffset = offsetof(URLResponse, interface),
121 .interfaceSize = sizeof(URLResponseInterface),
123 });
124 });
125
126 return clazz;
127}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void initialize(Class *clazz)
Definition: URLResponse.c:98
long Once
The Once type.
Definition: Once.h:37
#define do_once(once, block)
Executes the given block at most one time.
Definition: Once.h:43
ClassDefs are passed to _initialize via an archetype to initialize a Class.
Definition: Class.h:41
The runtime representation of a Class.
Definition: Class.h:95
Class * _Object(void)
The Object archetype.
Definition: Object.c:136
A protocol-agnostic abstraction for URLSessionTask responses.
Definition: URLResponse.h:42