Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4144

Add custom error response support in RemapPlugin of cppapi

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0
    • Component/s: CPP API
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              masaori Masaori Koshiba
              Reporter:
              yukihisa ishimura yukihisa ishimura
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: