| 6619 | } |
| 6620 | |
| 6621 | TSFetchSM |
| 6622 | TSFetchUrl(const char *headers, int request_len, sockaddr const *ip, TSCont contp, TSFetchWakeUpOptions callback_options, |
| 6623 | TSFetchEvent events) |
| 6624 | { |
| 6625 | if (callback_options != NO_CALLBACK) { |
| 6626 | sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS); |
| 6627 | } |
| 6628 | |
| 6629 | FetchSM *fetch_sm = FetchSMAllocator.alloc(); |
| 6630 | |
| 6631 | fetch_sm->init(reinterpret_cast<Continuation *>(contp), callback_options, events, headers, request_len, ip); |
| 6632 | fetch_sm->httpConnect(); |
| 6633 | |
| 6634 | return reinterpret_cast<TSFetchSM>(fetch_sm); |
| 6635 | } |
| 6636 | |
| 6637 | void |
| 6638 | TSFetchFlagSet(TSFetchSM fetch_sm, int flags) |
no test coverage detected