Differences From Artifact [e4e7822d0d]:
- File
src/OFURLHandler.m
— part of check-in
[5613565c63]
at
2018-02-25 16:06:14
on branch trunk
— OFURLHandler: Add a handler for HTTP(S)
This makes -[initWithContentsOfURL:] work again for HTTP(S) URLs. (user: js, size: 3588) [annotate] [blame] [check-ins using]
To Artifact [ccdf085773]:
- File src/OFURLHandler.m — part of check-in [f4b11d1e1b] at 2018-02-25 18:10:36 on branch trunk — OFURLHandler_HTTP: Require sockets and threads (user: js, size: 3656) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
23 24 25 26 27 28 29 | #ifdef OF_HAVE_THREADS # import "OFMutex.h" #endif #ifdef OF_HAVE_FILES # import "OFURLHandler_file.h" #endif | | | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #ifdef OF_HAVE_THREADS # import "OFMutex.h" #endif #ifdef OF_HAVE_FILES # import "OFURLHandler_file.h" #endif #if defined(OF_HAVE_SOCKETS) && defined(OF_HAVE_THREADS) # import "OFURLHandler_HTTP.h" #endif static OFMutableDictionary OF_GENERIC(OFString *, OFURLHandler *) *handlers; #ifdef OF_HAVE_THREADS static OFMutex *mutex; #endif |
︙ | ︙ | |||
49 50 51 52 53 54 55 | mutex = [[OFMutex alloc] init]; #endif #ifdef OF_HAVE_FILES [self registerClass: [OFURLHandler_file class] forScheme: @"file"]; #endif | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | mutex = [[OFMutex alloc] init]; #endif #ifdef OF_HAVE_FILES [self registerClass: [OFURLHandler_file class] forScheme: @"file"]; #endif #if defined(OF_HAVE_SOCKETS) && defined(OF_HAVE_THREADS) [self registerClass: [OFURLHandler_HTTP class] forScheme: @"http"]; [self registerClass: [OFURLHandler_HTTP class] forScheme: @"https"]; #endif } |
︙ | ︙ |