Differences From Artifact [cd6a2290d9]:
- File src/OFHTTPRequest.m — part of check-in [3b97fc3cd9] at 2014-01-04 00:24:08 on branch trunk — Update copyright. (user: js, size: 6788) [annotate] [blame] [check-ins using]
To Artifact [7522c047c2]:
- File
src/OFHTTPRequest.m
— part of check-in
[9da9b2b64c]
at
2014-04-14 00:45:58
on branch trunk
— Coding style
No functional change intended. (user: js, size: 6820) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
56 57 58 59 60 61 62 | return NULL; } of_http_request_method_t of_http_request_method_from_string(const char *string) { | | | | | | | | | | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | return NULL; } of_http_request_method_t of_http_request_method_from_string(const char *string) { if (strcmp(string, "OPTIONS") == 0) return OF_HTTP_REQUEST_METHOD_OPTIONS; if (strcmp(string, "GET") == 0) return OF_HTTP_REQUEST_METHOD_GET; if (strcmp(string, "HEAD") == 0) return OF_HTTP_REQUEST_METHOD_HEAD; if (strcmp(string, "POST") == 0) return OF_HTTP_REQUEST_METHOD_POST; if (strcmp(string, "PUT") == 0) return OF_HTTP_REQUEST_METHOD_PUT; if (strcmp(string, "DELETE") == 0) return OF_HTTP_REQUEST_METHOD_DELETE; if (strcmp(string, "TRACE") == 0) return OF_HTTP_REQUEST_METHOD_TRACE; if (strcmp(string, "CONNECT") == 0) return OF_HTTP_REQUEST_METHOD_CONNECT; @throw [OFInvalidFormatException exception]; } @implementation OFHTTPRequest + (instancetype)request |
︙ | ︙ |