Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Properties | Methods | Protected Attributes
URLSessionConfiguration Struct Reference

#include <URLSessionConfiguration.h>

Overview

Configuration bundle for URLSession.

Definition at line 43 of file URLSessionConfiguration.h.

Inheritance diagram for URLSessionConfiguration:
Object

Properties

struct {
   String *   password
 The password. More...
 
   String *   username
 The username. More...
 
credentials
 Credentials for URLRequests requiring authentication. More...
 
DictionaryhttpHeaders
 The HTTP headers added to every HTTP URLRequest. More...
 
int httpMaximumConnectionsPerHost
 The maximum number of HTTP connections to open per host. More...
 
Object object
 The superclass. More...
 
- Properties inherited from Object
Classclazz
 Every instance of Object begins with a pointer to its Class. More...
 

Methods

Class_URLSessionConfiguration (void)
 The URLSessionConfiguration archetype. More...
 
URLSessionConfigurationinit (URLSessionConfiguration *self)
 Initializes this URLSessionConfiguration. More...
 
- Methods inherited from Object
Class_Object (void)
 The Object archetype. More...
 
Objectcopy (const Object *self)
 Creates a shallow copy of this Object. More...
 
void dealloc (Object *self)
 Frees all resources held by this Object. More...
 
Stringdescription (const Object *self)
 
int hash (const Object *self)
 
Objectinit (Object *self)
 Initializes this Object. More...
 
_Bool isEqual (const Object *self, const Object *other)
 Tests equality of the other Object. More...
 
_Bool isKindOfClass (const Object *self, const Class *clazz)
 Tests for Class hierarchy membership. More...
 

Protected Attributes

URLSessionConfigurationInterface * interface
 The interface. More...
 
- Protected Attributes inherited from Object
ObjectInterface * interface
 The interface. More...
 

Property Details

◆ 

struct { ... } URLSessionConfiguration::credentials

Credentials for URLRequests requiring authentication.

◆ httpHeaders

Dictionary* URLSessionConfiguration::httpHeaders

The HTTP headers added to every HTTP URLRequest.

Definition at line 75 of file URLSessionConfiguration.h.

◆ httpMaximumConnectionsPerHost

int URLSessionConfiguration::httpMaximumConnectionsPerHost

The maximum number of HTTP connections to open per host.

Definition at line 80 of file URLSessionConfiguration.h.

◆ interface

URLSessionConfigurationInterface* URLSessionConfiguration::interface
protected

The interface.

Definition at line 54 of file URLSessionConfiguration.h.

◆ object

Object URLSessionConfiguration::object

The superclass.

Definition at line 48 of file URLSessionConfiguration.h.

◆ password

String* URLSessionConfiguration::password

The password.

Definition at line 68 of file URLSessionConfiguration.h.

◆ username

String* URLSessionConfiguration::username

The username.

Definition at line 63 of file URLSessionConfiguration.h.

Method Details

◆ _URLSessionConfiguration()

Class * _URLSessionConfiguration ( void  )

The URLSessionConfiguration archetype.

Returns
The URLSessionConfiguration Class.

Definition at line 62 of file URLSessionConfiguration.c.

62 {
63 static Class *clazz;
64 static Once once;
65
66 do_once(&once, {
67 clazz = _initialize(&(const ClassDef) {
68 .name = "URLSessionConfiguration",
69 .superclass = _Object(),
70 .instanceSize = sizeof(URLSessionConfiguration),
71 .interfaceOffset = offsetof(URLSessionConfiguration, interface),
72 .interfaceSize = sizeof(URLSessionConfigurationInterface),
74 });
75 });
76
77 return clazz;
78}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void initialize(Class *clazz)
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 * clazz
Every instance of Object begins with a pointer to its Class.
Definition: Object.h:51
Class * _Object(void)
The Object archetype.
Definition: Object.c:136
Configuration bundle for URLSession.
URLSessionConfigurationInterface * interface
The interface.

◆ init()

Initializes this URLSessionConfiguration.

Parameters
selfThe URLSessionConfiguration.
Returns
The initialized configuration, or NULL on error.

Definition at line 36 of file URLSessionConfiguration.c.

36 {
37
38 self = (URLSessionConfiguration *) super(Object, self, init);
39 if (self) {
40 // wut
41 }
42
43 return self;
44}
#define super(type, obj, method,...)
Object is the root Class of The Objectively Class hierarchy.
Definition: Object.h:46
URLSessionConfiguration * init(URLSessionConfiguration *self)
Initializes this URLSessionConfiguration.

The documentation for this struct was generated from the following files: