|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
#include <URLRequest.h>
A protocol-agnostic abstraction for requesting resources via URLs.
Definition at line 58 of file URLRequest.h.
Properties | |
| Data * | httpBody |
The HTTP request body, sent as POST or PUT data. | |
| Dictionary * | httpHeaders |
| The HTTP request headers. | |
| HTTPMethod | httpMethod |
| The HTTP request method. | |
| Object | object |
| The superclass. | |
| URL * | url |
| The URL. | |
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 * | _URLRequest (void) |
| The URLRequest archetype. | |
| URLRequest * | initWithURL (URLRequest *self, URL *url) |
| Initializes this URLRequest with the specified URL. | |
| void | setValueForHTTPHeaderField (URLREquest *self, const char *value, const char *field) |
| void | setValueForHTTPHeaderField (URLRequest *self, const char *value, const char *field) |
| Sets a value for the specified HTTP header. | |
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 | |
| URLRequestInterface * | interface |
| The interface. | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. | |
| Data* URLRequest::httpBody |
The HTTP request body, sent as POST or PUT data.
Definition at line 74 of file URLRequest.h.
| Dictionary* URLRequest::httpHeaders |
The HTTP request headers.
Definition at line 79 of file URLRequest.h.
| HTTPMethod URLRequest::httpMethod |
The HTTP request method.
Definition at line 84 of file URLRequest.h.
|
protected |
The interface.
Definition at line 69 of file URLRequest.h.
| Object URLRequest::object |
The superclass.
Definition at line 63 of file URLRequest.h.
| URL* URLRequest::url |
The URL.
Definition at line 89 of file URLRequest.h.
| Class * _URLRequest | ( | void | ) |
The URLRequest archetype.
Definition at line 204 of file URLRequest.c.
| URLRequest * initWithURL | ( | URLRequest * | self, |
| URL * | url | ||
| ) |
Initializes this URLRequest with the specified URL.
| self | The URLRequest. |
| url | The URL. |
NULL on error. Definition at line 150 of file URLRequest.c.
| void setValueForHTTPHeaderField | ( | URLREquest * | self, |
| const char * | value, | ||
| const char * | field | ||
| ) |
| void setValueForHTTPHeaderField | ( | URLRequest * | 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 169 of file URLRequest.c.