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

ASF GitHub Bot commented on TS-4144:
------------------------------------

GitHub user yishimur opened a pull request:

    https://github.com/apache/trafficserver/pull/435

    TS-4144: Add TSHttpTxnSetHttpRetStatus wrapper in atsapp

    Add supports in Transaction class.
    1. add new method to set http status code.
    2. add setErrorBody to set mimetype.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yishimur/trafficserver TS-4144

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/435.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #435
    
----
commit cd96080e4bd263fc66f7eb5444d5149da9e1e60f
Author: Yukihisa Ishimura <[email protected]>
Date:   2016-01-22T02:00:33Z

    TS-4144: Add TSHttpTxnSetHttpRetStatus wrapper in atsapp

----


> Add custom error response support in RemapPlugin of cppapi
> ----------------------------------------------------------
>
>                 Key: TS-4144
>                 URL: https://issues.apache.org/jira/browse/TS-4144
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: CPP API
>            Reporter: yukihisa ishimura
>            Assignee: Brian Geffon
>
> In my use case, I’d like to return custom response from my plugin using 
> RemapPlugin of CPP API.
> It looks like there are lack of supports in below.
> 1. Transaction class has setErrorBody to set body, but it has no method to 
> set http status code.
> 2. {{setErrorBody}} method in Transaction class doesn’t have option to 
> mimetype



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

Reply via email to