Differences From Artifact [108c0e95d0]:
- File
src/OFHTTPServer.h
— part of check-in
[d375061886]
at
2018-02-27 20:36:22
on branch trunk
— OFHTTP{Client,Server}: Rename body to requestBody
This makes it more clear that this has nothing to do with the body of
the response, as the body of the response is read from the
OFHTTPResponse itself. (user: js, size: 4365) [annotate] [blame] [check-ins using]
To Artifact [b239acc622]:
- File src/OFHTTPServer.h — part of check-in [f6d9264de0] at 2018-11-10 10:01:24 on branch trunk — OFHTTPServer: Add support for TLS (user: js, size: 5215) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
89 90 91 92 93 94 95 96 97 | * * @brief A class for creating a simple HTTP server inside of applications. */ @interface OFHTTPServer: OFObject { OFString *_Nullable _host; uint16_t _port; id <OFHTTPServerDelegate> _Nullable _delegate; OFString *_Nullable _name; | > > > | > > > > > > > > > > > > > > > > > > > > > > > > | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | * * @brief A class for creating a simple HTTP server inside of applications. */ @interface OFHTTPServer: OFObject { OFString *_Nullable _host; uint16_t _port; bool _usesTLS; OFString *_Nullable _certificateFile, *_Nullable _privateKeyFile; const char *_Nullable _privateKeyPassphrase; id <OFHTTPServerDelegate> _Nullable _delegate; OFString *_Nullable _name; OF_KINDOF(OFTCPSocket *) _Nullable _listeningSocket; } /*! * @brief The host on which the HTTP server will listen. */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *host; /*! * @brief The port on which the HTTP server will listen. */ @property (nonatomic) uint16_t port; /*! * @brief Whether the HTTP server uses TLS. */ @property (nonatomic) bool usesTLS; /*! * @brief The path to the X.509 certificate file to use for TLS. */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *certificateFile; /*! * @brief The path to the PKCS#8 private key file to use for TLS. */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *privateKeyFile; /*! * @brief The passphrase to decrypt the PKCS#8 private key file for TLS. * * @warning You have to ensure that this is in secure memory protected from * swapping! This is also the reason why this is not an OFString. */ @property OF_NULLABLE_PROPERTY (assign, nonatomic) const char *privateKeyPassphrase; /*! * @brief The delegate for the HTTP server. */ @property OF_NULLABLE_PROPERTY (assign, nonatomic) id <OFHTTPServerDelegate> delegate; /*! |
︙ | ︙ |