|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
#include <URLCachedResponse.h>
A cached HTTP response.
Definition at line 44 of file URLCachedResponse.h.
Properties | |
| Data * | data |
| The response body. | |
| Object | object |
| The superclass. | |
| URLResponse * | response |
| The HTTP response. | |
| size_t | size |
| The cached body size. | |
| Date * | timestamp |
| The time this response was cached. | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. | |
| unsigned int | magic |
| A header to allow introspection of Object types. | |
Methods | |
| Class * | _URLCachedResponse (void) |
| The URLCachedResponse archetype. | |
| URLCachedResponse * | initWithResponseData (URLCachedResponse *self, const URLResponse *response, const Data *data) |
| Initializes this URLCachedResponse with the given response and data. | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. | |
| bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. | |
| bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. | |
Protected Attributes | |
| URLCachedResponseInterface * | interface |
| The interface. | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. | |
| Data* URLCachedResponse::data |
The response body.
Definition at line 65 of file URLCachedResponse.h.
|
protected |
The interface.
Definition at line 55 of file URLCachedResponse.h.
| Object URLCachedResponse::object |
The superclass.
Definition at line 49 of file URLCachedResponse.h.
| URLResponse* URLCachedResponse::response |
The HTTP response.
Definition at line 60 of file URLCachedResponse.h.
| size_t URLCachedResponse::size |
The cached body size.
Definition at line 75 of file URLCachedResponse.h.
| Date* URLCachedResponse::timestamp |
The time this response was cached.
Definition at line 70 of file URLCachedResponse.h.
| Class * _URLCachedResponse | ( | void | ) |
The URLCachedResponse archetype.
Definition at line 164 of file URLCachedResponse.c.
| URLCachedResponse * initWithResponseData | ( | URLCachedResponse * | self, |
| const URLResponse * | response, | ||
| const Data * | data | ||
| ) |
Initializes this URLCachedResponse with the given response and data.
| self | The URLCachedResponse. |
| response | The HTTP response. |
| data | The response body. |
NULL on error. Definition at line 123 of file URLCachedResponse.c.