[ 
https://issues.apache.org/jira/browse/TS-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15001708#comment-15001708
 ] 

Brian Geffon commented on TS-4015:
----------------------------------

Fwiw, the way that was typically handled in the past was by adding a 
transaction hook to SendResponseHeader 
https://github.com/apache/trafficserver/blob/master/lib/atscppapi/examples/customresponse/CustomResponse.cc
 and then changing those codes once you have a Response object.

Given the message in ts.h: 
{code}
/* ToDo: This is a leftover from olden days, can we eliminate? */
tsapi void TSHttpTxnSetHttpRetStatus(TSHttpTxn txnp, TSHttpStatus 
http_retstatus);
{code}

I question whether we should take this route...?

Brian

> Add a transaction method to set the HTTP return status
> ------------------------------------------------------
>
>                 Key: TS-4015
>                 URL: https://issues.apache.org/jira/browse/TS-4015
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: CPP API
>            Reporter: Boaz Reicher
>            Assignee: Sudheer Vinukonda
>              Labels: review
>             Fix For: 6.1.0
>
>         Attachments: patch-4015.diff
>
>
> The Transaction class should have a method that allows setting the HTTP 
> return status without requiring a Response object.  Primarily needed for 
> setting error responses.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to