Re: [E] [PROPOSAL] New Get() API for the Txn error body

2024-03-14 Thread Walt Karas
Why not more const safe? const char *TSHttpTxnErrorBodyGet(TSHttpTxn txnp, size_t *buflength, const char **mimetype); On Thu, Mar 14, 2024 at 5:09 PM Leif Hedstrom wrote: > We have an existing API to set the error body (TSHttpTxnErrorBodyGet() ), > and I’d like to add the corresponding Get’er f

[PROPOSAL] New Get() API for the Txn error body

2024-03-14 Thread Leif Hedstrom
We have an existing API to set the error body (TSHttpTxnErrorBodyGet() ), and I’d like to add the corresponding Get’er for this. I’m proposing the following: /** Retrives the error body, if any, from a transaction. This would be a body as set via the API body. @param txnp