Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1736

Predicate Language handler to set inline response body

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.3.Final
    • Fix Version/s: None
    • Component/s: Core, Predicate Language
    • Labels:
      None

      Description

      It would be interesting to be able to declare a simple inline response body as part of a handler in the predicate language.  An example could be:

      path(/healthcheck) -> response-body('<h1>Site is up!</h1>')
      

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                flavia.rainone Flavia Rainone
                Reporter:
                bdw429s Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: