|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <URLRequest.h>
A protocol-agnostic abstraction for requesting resources via URLs.
Definition at line 56 of file URLRequest.h.
Properties | |
| Data * | httpBody |
The HTTP request body, sent as POST or PUT data. More... | |
| Dictionary * | httpHeaders |
| The HTTP request headers. More... | |
| HTTPMethod | httpMethod |
| The HTTP request method. More... | |
| Object | object |
| The superclass. More... | |
| URL * | url |
| The URL. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
| Class * | _URLRequest (void) |
| The URLRequest archetype. More... | |
| URLRequest * | initWithURL (URLRequest *self, URL *url) |
| Initializes this URLRequest with the specified URL. More... | |
| 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. More... | |
Methods inherited from Object | |
| 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 | |
| URLRequestInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
| Data* URLRequest::httpBody |
The HTTP request body, sent as POST or PUT data.
Definition at line 72 of file URLRequest.h.
| Dictionary* URLRequest::httpHeaders |
The HTTP request headers.
Definition at line 77 of file URLRequest.h.
| HTTPMethod URLRequest::httpMethod |
The HTTP request method.
Definition at line 82 of file URLRequest.h.
|
protected |
The interface.
Definition at line 67 of file URLRequest.h.
| Object URLRequest::object |
The superclass.
Definition at line 61 of file URLRequest.h.
| URL* URLRequest::url |
The URL.
Definition at line 87 of file URLRequest.h.
| Class * _URLRequest | ( | void | ) |
The URLRequest archetype.
Definition at line 122 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 73 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 89 of file URLRequest.c.