| 4572 | } |
| 4573 | |
| 4574 | TSReturnCode |
| 4575 | TSHttpTxnTransformRespGet(TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj) |
| 4576 | { |
| 4577 | sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); |
| 4578 | |
| 4579 | HttpSM *sm = reinterpret_cast<HttpSM *>(txnp); |
| 4580 | HTTPHdr *hptr = &(sm->t_state.hdr_info.transform_response); |
| 4581 | |
| 4582 | if (hptr->valid()) { |
| 4583 | *(reinterpret_cast<HTTPHdr **>(bufp)) = hptr; |
| 4584 | *obj = reinterpret_cast<TSMLoc>(hptr->m_http); |
| 4585 | return sdk_sanity_check_mbuffer(*bufp); |
| 4586 | } |
| 4587 | |
| 4588 | return TS_ERROR; |
| 4589 | } |
| 4590 | |
| 4591 | sockaddr const * |
| 4592 | TSHttpSsnClientAddrGet(TSHttpSsn ssnp) |