| 7873 | } |
| 7874 | |
| 7875 | static int |
| 7876 | transformable(TSHttpTxn txnp, TransformTestData *data) |
| 7877 | { |
| 7878 | TSMBuffer bufp; |
| 7879 | TSMLoc hdr_loc; |
| 7880 | int ret = 0; |
| 7881 | |
| 7882 | if (TSHttpTxnServerRespGet(txnp, &bufp, &hdr_loc) != TS_SUCCESS) { |
| 7883 | SDK_RPRINT(data->test, "TSHttpTxnTransform", "", TC_FAIL, "[transformable]: TSHttpTxnServerRespGet return 0"); |
| 7884 | return ret; |
| 7885 | } |
| 7886 | |
| 7887 | /* |
| 7888 | * We are only interested in "200 OK" responses. |
| 7889 | */ |
| 7890 | |
| 7891 | if (TS_HTTP_STATUS_OK == TSHttpHdrStatusGet(bufp, hdr_loc)) { |
| 7892 | ret = 1; |
| 7893 | } |
| 7894 | |
| 7895 | TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc); |
| 7896 | return ret; /* not a 200 */ |
| 7897 | } |
| 7898 | |
| 7899 | static void |
| 7900 | transform_add(TSHttpTxn txnp, TransformTestData *test_data) |
no test coverage detected