| 6642 | } |
| 6643 | |
| 6644 | TSFetchSM |
| 6645 | TSFetchCreate(TSCont contp, const char *method, const char *url, const char *version, struct sockaddr const *client_addr, int flags) |
| 6646 | { |
| 6647 | sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS); |
| 6648 | sdk_assert(ats_is_ip(client_addr)); |
| 6649 | |
| 6650 | FetchSM *fetch_sm = FetchSMAllocator.alloc(); |
| 6651 | |
| 6652 | fetch_sm->ext_init(reinterpret_cast<Continuation *>(contp), method, url, version, client_addr, flags); |
| 6653 | |
| 6654 | return reinterpret_cast<TSFetchSM>(fetch_sm); |
| 6655 | } |
| 6656 | |
| 6657 | void |
| 6658 | TSFetchHeaderAdd(TSFetchSM fetch_sm, const char *name, int name_len, const char *value, int value_len) |
no test coverage detected