Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <URLResponse.h>
A protocol-agnostic abstraction for URLSessionTask responses.
Definition at line 42 of file URLResponse.h.
Properties | |
Dictionary * | httpHeaders |
The HTTP response headers. More... | |
int | httpStatusCode |
The HTTP response status code. More... | |
Object | object |
The superclass. More... | |
![]() | |
Class * | clazz |
Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
Class * | _URLResponse (void) |
The URLResponse archetype. More... | |
URLResponse * | init (URLResponse *self) |
Initializes this URLResponse. More... | |
void | setValueForHTTPHeaderField (URLREquest *self, const char *value, const char *field) |
void | setValueForHTTPHeaderField (URLResponse *self, const char *value, const char *field) |
Sets a value for the specified HTTP header. More... | |
![]() | |
Class * | _Object (void) |
The Object archetype. More... | |
Object * | copy (const Object *self) |
Creates a shallow copy of this Object. More... | |
void | dealloc (Object *self) |
Frees all resources held by this Object. More... | |
String * | description (const Object *self) |
int | hash (const Object *self) |
Object * | init (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 | |
URLResponseInterface * | interface |
The interface. More... | |
![]() | |
ObjectInterface * | interface |
The interface. More... | |
Dictionary* URLResponse::httpHeaders |
The HTTP response headers.
Definition at line 58 of file URLResponse.h.
int URLResponse::httpStatusCode |
The HTTP response status code.
Definition at line 63 of file URLResponse.h.
|
protected |
The interface.
Definition at line 53 of file URLResponse.h.
Object URLResponse::object |
The superclass.
Definition at line 47 of file URLResponse.h.
Class * _URLResponse | ( | void | ) |
The URLResponse archetype.
Definition at line 111 of file URLResponse.c.
URLResponse * init | ( | URLResponse * | self | ) |
Initializes this URLResponse.
self | The URLResponse. |
NULL
on error. Definition at line 70 of file URLResponse.c.
void setValueForHTTPHeaderField | ( | URLREquest * | self, |
const char * | value, | ||
const char * | field | ||
) |
void setValueForHTTPHeaderField | ( | URLResponse * | self, |
const char * | value, | ||
const char * | field | ||
) |
Sets a value for the specified HTTP header.
self | The URLRequest. |
value | The HTTP header value. |
field | The HTTP header field. |
Definition at line 78 of file URLResponse.c.