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

Predicate Language handler to set inline response body

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 2.1.3.Final
    • Core, Predicate Language
    • 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>')
      

       

      Attachments

        Activity

          People

            bdw429s Brad Wood
            bdw429s Brad Wood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: