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

Predicate Language handler to set inline response body

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.1.3.Final
    • Core, Predicate Language
    • None

      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>')
      

       

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

                Created:
                Updated: