Overview
Comment: | OFHTTP{Client,Server}: Rename body to requestBody
This makes it more clear that this has nothing to do with the body of |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d375061886ef4b614f6c19758be7cd5a |
User & Date: | js on 2018-02-27 20:36:22 |
Other Links: | manifest | tags |
Context
2018-03-09
| ||
22:53 | OFLocalization: Prevent calling -[init] twice check-in: defee30139 user: js tags: trunk | |
2018-02-27
| ||
20:36 | OFHTTP{Client,Server}: Rename body to requestBody check-in: d375061886 user: js tags: trunk | |
2018-02-25
| ||
20:19 | OFHTTPClient: Reset client on any exception check-in: 2c415002da user: js tags: trunk | |
Changes
Modified src/OFHTTPClient.h from [baab318aa5] to [488f1f88e1].
︙ | |||
87 88 89 90 91 92 93 | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | - + + - + | context: (nullable id)context; /*! * @brief A callback which is called when an OFHTTPClient wants to send the * body for a request. * * @param client The OFHTTPClient that wants to send the body |
︙ |
Modified src/OFHTTPClient.m from [b418796944] to [325ef4384d].
︙ | |||
572 573 574 575 576 577 578 | 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 | - + - + - + | [self raiseException: exception]; return 0; } _firstLine = true; if ([[_request headers] objectForKey: @"Content-Length"] != nil) { |
︙ | |||
1147 1148 1149 1150 1151 1152 1153 | 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 | - + - + - + | [_delegate client: client didCreateSocket: sock request: request context: context]; } - (void)client: (OFHTTPClient *)client |
︙ |
Modified src/OFHTTPServer.h from [d45b5ef4ed] to [108c0e95d0].
︙ | |||
37 38 39 40 41 42 43 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | - + - + | @protocol OFHTTPServerDelegate <OFObject> /*! * @brief This method is called when the HTTP server received a request from a * client. * * @param server The HTTP server which received the request * @param request The request the HTTP server received |
︙ |
Modified src/OFHTTPServer.m from [b47d8bb3a2] to [d2c22eea59].
︙ | |||
81 82 83 84 85 86 87 | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | - + | } _state; uint8_t _HTTPMinorVersion; of_http_request_method_t _method; OFString *_host, *_path; uint16_t _port; OFMutableDictionary *_headers; size_t _contentLength; |
︙ | |||
398 399 400 401 402 403 404 | 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 | - + | [_timer invalidate]; [_timer release]; [_host release]; [_path release]; [_headers release]; |
︙ | |||
507 508 509 510 511 512 513 | 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 | - - - + + + | } @catch (OFInvalidFormatException *e) { return [self sendErrorAndClose: 400]; } if (contentLength < 0) return [self sendErrorAndClose: 400]; |
︙ | |||
647 648 649 650 651 652 653 | 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 | - + | response = [[[OFHTTPServerResponse alloc] initWithSocket: _socket server: _server request: request] autorelease]; [[_server delegate] server: _server didReceiveRequest: request |
︙ |
Modified tests/OFHTTPClientTests.m from [ca69cf61a6] to [7a04e238a8].
︙ | |||
102 103 104 105 106 107 108 | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | - + | return nil; } @end @implementation TestsAppDelegate (OFHTTPClientTests) - (void)client: (OFHTTPClient *)client |
︙ |
Modified utils/ofhttp/OFHTTP.m from [cdc79122cb] to [20b438d92f].
︙ | |||
508 509 510 511 512 513 514 | 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 | - + | { if (_insecure && [sock respondsToSelector: @selector(setCertificateVerificationEnabled:)]) [sock setCertificateVerificationEnabled: false]; } - (void)client: (OFHTTPClient *)client |
︙ |