| 6571 | } |
| 6572 | |
| 6573 | int |
| 6574 | HttpSM::write_header_into_buffer(HTTPHdr *h, MIOBuffer *b) |
| 6575 | { |
| 6576 | int dumpoffset; |
| 6577 | int done; |
| 6578 | |
| 6579 | dumpoffset = 0; |
| 6580 | do { |
| 6581 | IOBufferBlock *block = b->get_current_block(); |
| 6582 | int bufindex = 0; |
| 6583 | int tmp = dumpoffset; |
| 6584 | |
| 6585 | ink_assert(block->write_avail() > 0); |
| 6586 | done = h->print(block->start(), block->write_avail(), &bufindex, &tmp); |
| 6587 | dumpoffset += bufindex; |
| 6588 | ink_assert(bufindex > 0); |
| 6589 | b->fill(bufindex); |
| 6590 | if (!done) { |
| 6591 | b->add_block(); |
| 6592 | } |
| 6593 | } while (!done); |
| 6594 | |
| 6595 | return dumpoffset; |
| 6596 | } |
| 6597 | |
| 6598 | void |
| 6599 | HttpSM::attach_server_session() |
nothing calls this directly
no test coverage detected