#include <assert.h>
#include "MutableDictionary.h"
#include "String.h"
#include "URLResponse.h"
Go to the source code of this file.
◆ _Class
◆ _URLResponse()
Class * _URLResponse |
( |
void |
| ) |
|
Definition at line 111 of file URLResponse.c.
111 {
114
117 .name = "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.
static void initialize(Class *clazz)
#define do_once(once, block)
Executes the given block at most one time.
ClassDefs are passed to _initialize via an archetype to initialize a Class.
The runtime representation of a Class.
Class * _Object(void)
The Object archetype.
A protocol-agnostic abstraction for URLSessionTask responses.
◆ copy()
- See also
- Object::copy(const Object *)
Definition at line 37 of file URLResponse.c.
37 {
38
40
42
43 if (this->httpHeaders) {
45 }
46
48
50}
#define alloc(type)
Allocate and initialize and instance of type.
Condition * init(Condition *self)
Initializes this Condition.
Immutable key-value stores.
Object is the root Class of The Objectively Class hierarchy.
Object * copy(const Object *self)
Creates a shallow copy of this Object.
Dictionary * httpHeaders
The HTTP response headers.
int httpStatusCode
The HTTP response status code.
◆ dealloc()
static void dealloc |
( |
Object * |
self | ) |
|
|
static |
- See also
- Object::dealloc(Object *)
Definition at line 55 of file URLResponse.c.
55 {
56
58
60
62}
ident release(ident obj)
Atomically decrement the given Object's reference count. If the resulting reference count is 0,...
#define super(type, obj, method,...)
void dealloc(Object *self)
Frees all resources held by this Object.
◆ init()
◆ initialize()
static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 98 of file URLResponse.c.
98 {
99
102
105}
ident interface
The interface of the Class.
void setValueForHTTPHeaderField(URLREquest *self, const char *value, const char *field)
◆ setValueForHTTPHeaderField()
static void setValueForHTTPHeaderField |
( |
URLResponse * |
self, |
|
|
const char * |
value, |
|
|
const char * |
field |
|
) |
| |
|
static |
Definition at line 78 of file URLResponse.c.
78 {
79
82 }
83
86
88
91}
Mutable key-value stores.
void setObjectForKey(MutableDictionary *self, const ident obj, const ident key)
Sets a pair in this MutableDictionary.
OBJECTIVELY_EXPORT String * str(const char *fmt,...)
A convenience function for instantiating Strings.