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

Expose build_error_response in order to making a formated error response in plugin

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: TS API
    • Labels:

      Description

      expose build_error_response in order to making a formated error response in plugin.

      ATS support multi-language error response page by body_factory.
      In the ATS internal, build_error_response used to generating it.

      I wrote a patch to expose build_error_response function for plugin.
      and modified example/basic_auth for a sample usage.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                oknet Chao Xu
                Reporter:
                oknet Chao Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h