ObjFW  History of src/OFHTTPRequest.h of 3f9e0e0f0717f7eb

History of file src/OFHTTPRequest.h at check-in 3f9e0e0f0717f7eb

2024-06-17
21:08
Always use <ObjFW/ObjFW.h> in documentation file: [b27998b9b8] check-in: [164f2fb4bf] user: js, branch: trunk, size: 5470 [annotate] [blame] [check-ins using] [diff]
2024-04-03
02:16
Change license to LGPLv3 only file: [bd6129a6fd] check-in: [7413a728a7] user: js, branch: trunk, size: 5486 [annotate] [blame] [check-ins using] [diff]
2024-02-03
11:41
Update copyright file: [ae8d69a747] check-in: [7324ec8590] user: js, branch: 1.0, size: 4321 [annotate] [blame] [check-ins using] [diff]
2024-01-02
17:17
Update copyright file: [2743b8de7d] check-in: [26ddd2e4e4] user: js, branch: trunk, size: 5278 [annotate] [blame] [check-ins using] [diff]
2023-10-15
14:55
Add OFHTTPRequestMethodString()

This deprecates OFHTTPRequestMethodName(), which returns a C string.
APIs should avoid C strings as much as possible.

This function was initially only used internally, where this was fine.
However, when it was made public, it should have been converted to
OFString at the same time.

Adds OFHTTPRequestMethodParseString() for consistency, which behaves the
same as OFHTTPRequestMethodParseName() and deprecates it. file: [ff8f88f432] check-in: [12c09ef41e] user: js, branch: trunk, size: 5278 [annotate] [blame] [check-ins using] [diff]

2023-08-09
22:39
OFValue: Improve -[description] file: [163a3d1bed] check-in: [772e8b8f78] user: js, branch: trunk, size: 4321 [annotate] [blame] [check-ins using] [diff]
2023-01-06
09:04
Update copyright file: [f431611fce] check-in: [8939cbdb52] user: js, branch: trunk, size: 4292 [annotate] [blame] [check-ins using] [diff]
2022-11-24
00:21
Rename OFURI to OFIRI file: [6abdebee2e] check-in: [23272e6d43] user: js, branch: trunk, size: 4292 [annotate] [blame] [check-ins using] [diff]
2022-09-28
21:40
Rename OFUR{L -> I} in preparation for URI support file: [1278addd47] check-in: [e7ab06503c] user: js, branch: trunk, size: 4292 [annotate] [blame] [check-ins using] [diff]
2022-09-25
20:14
Document more exceptions file: [c73f1b3904] check-in: [5a4e00df9a] user: js, branch: trunk, size: 4292 [annotate] [blame] [check-ins using] [diff]
2022-09-12
08:52
Restrict subclassing on more classes file: [5a42fad5dc] check-in: [1038191a03] user: js, branch: trunk, size: 3848 [annotate] [blame] [check-ins using] [diff]
2022-06-05
09:44
OFHTTPRequest: Remove init without URL file: [cc3f0d316f] check-in: [a2872b719a] user: js, branch: trunk, size: 3858 [annotate] [blame] [check-ins using] [diff]
2022-02-12
07:46
Update copyright file: [2a4f5e7d62] check-in: [1a86b8175b] user: js, branch: trunk, size: 3941 [annotate] [blame] [check-ins using] [diff]
2021-04-29
23:24
Clean up struct and enum typedefs

With TYPEDEF_HIDES_STRUCT set, Doxygen properly handles anonymous
structs and enums that are typedef'd. file: [e5c26eec6f] check-in: [2fcf5a3052] user: js, branch: trunk, size: 3941 [annotate] [blame] [check-ins using] [diff]

2021-04-18
20:51
Rename everything in several smaller files file: [28493df649] check-in: [35de667566] user: js, branch: new-naming-convention, size: 4027 [annotate] [blame] [check-ins using] [diff]
2021-04-17
14:33
Rename of_http_* file: [c2fc6a197c] check-in: [83d8f3e5f6] user: js, branch: new-naming-convention, size: 4026 [annotate] [blame] [check-ins using] [diff]
13:58
of_socket_address_t -> OFSocketAddress file: [9c2534e693] check-in: [e3c5bb70dd] user: js, branch: new-naming-convention, size: 4131 [annotate] [blame] [check-ins using] [diff]
2021-01-02
22:04
Update copyright file: [3c89198066] check-in: [374e1a1bfa] user: js, branch: trunk, size: 4143 [annotate] [blame] [check-ins using] [diff]
2020-10-10
21:54
More type cleanups file: [8374acae4d] check-in: [ac004e624d] user: js, branch: trunk, size: 4232 [annotate] [blame] [check-ins using] [diff]
2020-10-03
21:46
OFHTTPRequest: Fix handling of remoteAddress file: [345d23988c] check-in: [8d78a77f79] user: js, branch: trunk, size: 4220 [annotate] [blame] [check-ins using] [diff]
11:35
Use /** */ instead of /*! */ for documentation file: [c1c1ccb441] check-in: [163a4a5a2e] user: js, branch: trunk, size: 4195 [annotate] [blame] [check-ins using] [diff]
2020-09-26
21:58
Don't require __COUNTER__ for OF_RESERVE_IVARS

__COUNTER__ does not exist in GCC 4.2, and Apple GCC 4.2 is still the
newest compiler available for macOS 10.5. file: [381b8b1e37] check-in: [ef614a225d] user: js, branch: trunk, size: 4195 [annotate] [blame] [check-ins using] [diff]

2020-04-12
12:52
Work around broken -Wdocumentation in Clang 10 file: [e39f7af9d0] check-in: [d35b4e3a85] user: js, branch: trunk, size: 4180 [annotate] [blame] [check-ins using] [diff]
2020-03-22
16:15
ofhttp: Allow all request methods file: [c500866337] check-in: [a013a9d577] user: js, branch: trunk, size: 4098 [annotate] [blame] [check-ins using] [diff]
2020-01-02
01:51
Update copyright file: [4385937a7a] check-in: [c7f0229795] user: js, branch: trunk, size: 4100 [annotate] [blame] [check-ins using] [diff]
2019-09-29
19:35
Either restrict subclassing or reserve ivar space

This allows ABI stability with the fragile ABI. file: [9466bbaa67] check-in: [496695d778] user: js, branch: trunk, size: 4097 [annotate] [blame] [check-ins using] [diff]

2019-03-12
21:50
OFHTTPRequest: Note that remoteAddress is copied file: [b110c8f2e2] check-in: [3b09055db5] user: js, branch: trunk, size: 4076 [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
Update copyright file: [0b73ff14b2] check-in: [0509d7a844] user: js, branch: trunk, size: 4015 [annotate] [blame] [check-ins using] [diff]
2018-11-17
22:46
Improve property name consistency file: [9290a57d05] check-in: [4ec7e46c8a] user: js, branch: trunk, size: 4009 [annotate] [blame] [check-ins using] [diff]
2018-08-11
14:00
Change the layout of of_socket_address_t

Instead of containing a struct sockaddr_storage - which does not exist
on all supported platforms - it now contains a union of all struct
sockaddr_* types.

Additionally, if struct sockaddr_in6 does not exist, it is defined so
that an IPv6 can be stored even if the system does not support IPv6. file: [7136743ab3] check-in: [8f810ecb7e] user: js, branch: trunk, size: 4247 [annotate] [blame] [check-ins using] [diff]

2018-02-25
02:55
OFHTTPRequest: Remove body file: [7ce0d63ac4] check-in: [629e8d915a] user: js, branch: trunk, size: 4212 [annotate] [blame] [check-ins using] [diff]
2018-01-21
02:20
Allow boxing of most structs file: [c71064978e] check-in: [88b19eae2c] user: js, branch: trunk, size: 4900 [annotate] [blame] [check-ins using] [diff]
2018-01-03
19:49
Update copyright notice file: [96bca5878e] check-in: [7e5c81e186] user: js, branch: trunk, size: 4889 [annotate] [blame] [check-ins using] [diff]
2017-11-18
18:50
Documentation: Use @brief for all properties file: [07ff666263] check-in: [cc3ad3ddd3] user: js, branch: trunk, size: 4866 [annotate] [blame] [check-ins using] [diff]
2017-10-29
21:58
Convert methods to properties where appropriate

This improves Swift compatibility. file: [0bad35c687] check-in: [f3ccf14461] user: js, branch: trunk, size: 4817 [annotate] [blame] [check-ins using] [diff]

2017-10-17
00:33
Do not use implicit method return types

Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. file: [c4033f68e4] check-in: [2f4e0df8be] user: js, branch: trunk, size: 5139 [annotate] [blame] [check-ins using] [diff]

2017-09-26
22:01
Many nullability fixes file: [c06e523cb0] check-in: [319709fff1] user: js, branch: 0.90, size: 5125 [annotate] [blame] [check-ins using] [diff]
21:53
Many nullability fixes file: [bae740e132] check-in: [52011fbfd6] user: js, branch: trunk, size: 5125 [annotate] [blame] [check-ins using] [diff]
2017-08-11
22:26
Always have retain / copy before nonatomic file: [0124cf01e3] check-in: [9db36c14b5] user: js, branch: trunk, size: 5095 [annotate] [blame] [check-ins using] [diff]
2017-07-22
20:50
Split OFDataArray into OFData and OFMutableData file: [c4ecec1316] check-in: [c8f7b90082] user: js, branch: trunk, size: 5095 [annotate] [blame] [check-ins using] [diff]
2017-05-15
21:41
Remove cookies from OFHTTP{Request,Response}

These can just live in the headers. file: [665d821683] check-in: [fedbbb2344] user: js, branch: trunk, size: 5112 [annotate] [blame] [check-ins using] [diff]

2017-05-14
21:29
Add OFHTTPCookieManager file: [3bcfe6b2bf] check-in: [28bacc2aa0] user: js, branch: trunk, size: 5328 [annotate] [blame] [check-ins using] [diff]
2017-05-13
16:29
Also use nonatomic for non-object properties file: [db98ef2863] check-in: [f663d40cbd] user: js, branch: trunk, size: 5390 [annotate] [blame] [check-ins using] [diff]
2017-05-07
21:16
Make -[OFHTTPRequest setBodyFromString:] nonnull file: [9f0eddeab0] check-in: [8016757def] user: js, branch: trunk, size: 5378 [annotate] [blame] [check-ins using] [diff]
20:10
Small code style change

Casts are now written like types in variable declarations. file: [f3657b719a] check-in: [4af49a13c3] user: js, branch: trunk, size: 5396 [annotate] [blame] [check-ins using] [diff]

2017-04-30
13:35
Use nonatomic for properties and clean up

This changes retaining behavior, meaning properties are not returned
retained and autoreleased anymore, so a property returned from a getter
now needs to be manually retained and autoreleased before calling the
setter. However, this is rarely the case and not using atomic improves
performance. file: [116a255b13] check-in: [0a73af49f0] user: js, branch: trunk, size: 5384 [annotate] [blame] [check-ins using] [diff]

2017-01-09
17:36
Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. file: [47ebc74e15] check-in: [44f45c2e35] user: js, branch: trunk, size: 5329 [annotate] [blame] [check-ins using] [diff]

2016-10-08
15:57
Add cookies property to OFHTTP{Request,Response} file: [89b526595f] check-in: [e7713d6300] user: js, branch: trunk, size: 5323 [annotate] [blame] [check-ins using] [diff]
2016-01-03
00:43
Update copyright

While at it, also update the mail address. file: [88cb073e27] check-in: [cec0f072f8] user: js, branch: 0.8, size: 6681 [annotate] [blame] [check-ins using] [diff]

00:41
Update copyright

While at it, also update the mail address. file: [bceac768c7] check-in: [2a27cf3000] user: js, branch: trunk, size: 5120 [annotate] [blame] [check-ins using] [diff]

2015-11-29
11:43
Make properties a requirement and clean up code

This increases the required GCC version from 4.0 to 4.6 (exception:
Apple GCC, which already supports this with >= 4.0 starting with OS X
10.5). Since even GCC 4.6 is really old by now, there is no point in
still supporting something even older and making the code ugly because
of that. While some hardware and OS support was dropped from GCC 4.6
compared to GCC 4.0, there is nothing in there that would be an
interesting target with the exception of BeOS maybe - but a port to BeOS
can also be achieved using the Haiku support. The other dropped OSes are
mostly old versions of OSes while newer ones are still being supported
(and those newer versions of those OSes still support the same
hardware). file: [0d537b984c] check-in: [48980f2297] user: js, branch: trunk, size: 5116 [annotate] [blame] [check-ins using] [diff]

2015-11-21
18:35
Remove OF_NULLABLE / OF_NONNULL

Now that Clang switched to use _Nullable and _Nonnull instead of
__nullable / __nonnull, there is no longer a conflict with glibc, which
means we can just define _Nullable / _Nonnull to nothing if they are not
understood by the compiler (which did not work with __nullable /
__nonnull due to this conflict).

This also defines _Null_unspecified to nothing if unavailable. file: [cc2cdac436] check-in: [d526d938d7] user: js, branch: trunk, size: 6675 [annotate] [blame] [check-ins using] [diff]

2015-06-17
22:11
Add OF_NULLABLE_PROPERTY

This is necessary to make GCC (>= 4.6 and Apple GCC) happy as they don't
like the list of property attributes ending in a comma. file: [2b094f8687] check-in: [80e1a9655b] user: js, branch: trunk, size: 6677 [annotate] [blame] [check-ins using] [diff]

2015-06-14
10:45
Add OF_NONNULL / OF_NULLABLE and use that instead

Using __nonnull directly doesn't work on systems using glibc, as glibc
defines __nonnull as a parameterized define. While this does not fix the
problem of Clang introducing __nonnull even though it conflicts with
glibc, this at least means it's possible again to compile things with
versions of Clang that don't support __nonnull on systems with glibc. file: [a0120e2911] check-in: [b7097a67b6] user: js, branch: trunk, size: 6644 [annotate] [blame] [check-ins using] [diff]

2015-06-13
22:26
Add support for and use the new nullability file: [523bcf67ad] check-in: [9e76144ef8] user: js, branch: trunk, size: 6643 [annotate] [blame] [check-ins using] [diff]
2015-06-12
23:59
Add support for and use the new ObjC generics file: [22005b677b] check-in: [5329fe7c1a] user: js, branch: trunk, size: 6474 [annotate] [blame] [check-ins using] [diff]
2015-05-23
11:21
OFHTTPRequest: Rename entity to body file: [2ca5d029e3] check-in: [c8877fd278] user: js, branch: trunk, size: 6310 [annotate] [blame] [check-ins using] [diff]
2015-01-03
20:57
Update copyright file: [9935b8277c] check-in: [cfd374b906] user: js, branch: trunk, size: 6328 [annotate] [blame] [check-ins using] [diff]
2014-11-16
21:35
Fix two typos in documentation file: [d185b6a6e4] check-in: [4c2dbb263c] user: js, branch: trunk, size: 6322 [annotate] [blame] [check-ins using] [diff]
2014-07-05
09:14
OFHTTPRequest: Add -[setEntityFromString:] file: [333d96b64f] check-in: [5109a3e7e4] user: js, branch: trunk, size: 6322 [annotate] [blame] [check-ins using] [diff]
2014-02-18
18:50
Documentation: Show correct imports file: [1d003cc829] check-in: [246cfe0807] user: js, branch: trunk, size: 5754 [annotate] [blame] [check-ins using] [diff]
2014-01-04
00:24
Update copyright. file: [f4880d373c] check-in: [3b97fc3cd9] user: js, branch: trunk, size: 5654 [annotate] [blame] [check-ins using] [diff]
2013-09-28
15:25
OFHTTP{Client,Server}: Handle all request methods. file: [f347146186] check-in: [7be34d8c40] user: js, branch: trunk, size: 5648 [annotate] [blame] [check-ins using] [diff]
01:50
Improve HTTP request method handling. file: [3c79d758cd] check-in: [c76896d937] user: js, branch: trunk, size: 5993 [annotate] [blame] [check-ins using] [diff]
2013-08-15
17:40
OFHTTPRequest: Conform to OFCopying. file: [a983083af8] check-in: [7efd17523d] user: js, branch: trunk, size: 5089 [annotate] [blame] [check-ins using] [diff]
2013-04-26
19:42
Make it possible to disable sockets. file: [daf0e520ee] check-in: [590c377d8a] user: js, branch: trunk, size: 5077 [annotate] [blame] [check-ins using] [diff]
2013-02-12
18:22
Prefix all ivars with an underscore. file: [f26f1fecd0] check-in: [e40729d406] user: js, branch: trunk, size: 5015 [annotate] [blame] [check-ins using] [diff]
2013-01-26
00:13
Make OFHTTPRequestReply a stream.

This also implements chunked transfer encoding for OFHTTPServer and adds
a property for the protocol version to OFHTTPRequest(Reply).

Additionally, this makes it possible to add an async version of
OFHTTPClient. file: [eeab32f289] check-in: [bdf9c4d96b] user: js, branch: trunk, size: 5008 [annotate] [blame] [check-ins using] [diff]

2013-01-17
23:15
Documentation improvements. file: [ffcaf67e5f] check-in: [50b5ac3b27] user: js, branch: trunk, size: 3825 [annotate] [blame] [check-ins using] [diff]
2013-01-10
22:52
Fix all Doxygen warnings. file: [a0477eca6a] check-in: [365d74aa27] user: js, branch: trunk, size: 3726 [annotate] [blame] [check-ins using] [diff]
2013-01-09
22:24
Update copyright. file: [81e77e794b] check-in: [813c00ccf0] user: js, branch: trunk, size: 3726 [annotate] [blame] [check-ins using] [diff]
2012-12-26
20:55
OFHTTPRequestResult -> OFHTTPRequestReply.

The class also has its own file now. file: [c5b6d90b4d] check-in: [75f187cef5] user: js, branch: trunk, size: 3720 [annotate] [blame] [check-ins using] [diff]

2012-12-15
20:35
OFHTTPRequest: Add property remoteAddress. file: [045a3b40c5] check-in: [b8d3e09eff] user: js, branch: trunk, size: 5286 [annotate] [blame] [check-ins using] [diff]
2012-12-14
01:42
Rename -[OFHTTPRequest postData] to POSTData. file: [5980347de8] check-in: [fbb9df7439] user: js, branch: trunk, size: 4832 [annotate] [blame] [check-ins using] [diff]
2012-12-11
12:12
Make creating OFHTTPRequestResults public. file: [f5735e078a] check-in: [020cedb44b] user: js, branch: trunk, size: 4832 [annotate] [blame] [check-ins using] [diff]
2012-12-09
12:13
Split OFHTTPRequest into OFHTTP{Client,Request}. file: [a7837b8f3d] check-in: [2b7a70e246] user: js, branch: trunk, size: 4189 [annotate] [blame] [check-ins using] [diff]
2012-12-06
16:20
OFHTTPRequestDelegate: Method name improvement. file: [269d67ae36] check-in: [c64cb4c5f2] user: js, branch: trunk, size: 8523 [annotate] [blame] [check-ins using] [diff]
2012-10-28
12:38
Switch to a headerdoc-compatible doc format. file: [26ed4a79d0] check-in: [1ad9565253] user: js, branch: trunk, size: 8519 [annotate] [blame] [check-ins using] [diff]
2012-10-09
15:07
Make use of instancetype. file: [afa9ff2eb3] check-in: [fb515e8e24] user: js, branch: trunk, size: 8519 [annotate] [blame] [check-ins using] [diff]
2012-02-29
21:12
\cond internal is not needed anymore. file: [62c4ad9368] check-in: [95db0335d8] user: js, branch: 0.6, size: 8491 [annotate] [blame] [check-ins using] [diff]
2012-02-01
13:42
Clean up the properties mess. file: [915ec7bd0b] check-in: [c1b35e1495] user: js, branch: trunk, size: 8523 [annotate] [blame] [check-ins using] [diff]
2012-01-05
00:56
Update copyright. file: [62550e26c6] check-in: [ce70e17b38] user: js, branch: trunk, size: 8550 [annotate] [blame] [check-ins using] [diff]
2011-12-13
15:01
Add -[request:didCreateSocket:] to OFHTTPRequestDelegate. file: [4542ed27a0] check-in: [b02b668f81] user: js, branch: trunk, size: 8544 [annotate] [blame] [check-ins using] [diff]
2011-10-24
18:28
Don't retain delegates to prevent reference cycles. file: [de1dce9f3b] check-in: [87cd99ff88] user: js, branch: trunk, size: 7955 [annotate] [blame] [check-ins using] [diff]
2011-05-08
17:19
More documentation improvements. file: [73f77fc69e] check-in: [242b1ccd71] user: js, branch: trunk, size: 7955 [annotate] [blame] [check-ins using] [diff]
2011-04-22
20:19
More style improvements. file: [55acdcf8df] check-in: [e76a7f52c1] user: js, branch: trunk, size: 7060 [annotate] [blame] [check-ins using] [diff]
14:35
OFHTTPRequest: Make it possible to not store the data in an OFDataArray.

This way, it's possible to do downloads without keeping the whole file
in memory. file: [cb8dc6b01c] check-in: [1cc6f3659f] user: js, branch: trunk, size: 7016 [annotate] [blame] [check-ins using] [diff]

14:13
Add OFHTTPRequestDelegate.
This allows status updates etc.
file: [50bcc3a5fa] check-in: [9ed387bacb] user: js, branch: trunk, size: 6612 [annotate] [blame] [check-ins using] [diff]
2011-03-30
00:36
OFHTTPRequest: Disallow redirects from HTTPS to HTTP by default.
Still works when setting redirectsFromHTTPSToHTTPAllowed.
file: [3154174ff6] check-in: [46881c3773] user: js, branch: trunk, size: 4346 [annotate] [blame] [check-ins using] [diff]
2011-03-29
17:51
Add +[requestWithURL:] to OFHTTPRequest. file: [ee98886554] check-in: [bfcd3875fe] user: js, branch: trunk, size: 3944 [annotate] [blame] [check-ins using] [diff]
2011-02-27
00:35
Rename -[result] to -[perform] in OFHTTPRequest. file: [15378426fb] check-in: [53213f1d41] user: js, branch: trunk, size: 3629 [annotate] [blame] [check-ins using] [diff]
2011-02-24
18:27
Make it possible to specify a TLS socket class for OFHTTPRequest.

This way, OFHTTPRequest will support HTTPS using a third party TLS
library. file: [9575ac8a9b] check-in: [c64d88f50f] user: js, branch: trunk, size: 3627 [annotate] [blame] [check-ins using] [diff]

2011-02-17
17:12
Add more -W flags. file: [964ebc0e8e] check-in: [797e00a919] user: js, branch: trunk, size: 3579 [annotate] [blame] [check-ins using] [diff]
2011-02-09
16:16
Added: Add OFHTTPRequest class. file: [49c4f75181] check-in: [3beecbace3] user: js, branch: trunk, size: 3619 [annotate] [blame] [check-ins using]