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

Add custom error response support in RemapPlugin of cppapi

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.2.0
    • CPP API
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: