mod_rest/README.markdown
changeset 4923 b9f8dd9a7fdb
parent 4539 dc35d2932d3e
child 4924 bdac7c717c91
equal deleted inserted replaced
4922:347e34c3c7e2 4923:b9f8dd9a7fdb
   128 ``` {.lua}
   128 ``` {.lua}
   129 Component "rest.example.net" "rest"
   129 Component "rest.example.net" "rest"
   130 rest_callback_url = "http://my-api.example:9999/stanzas"
   130 rest_callback_url = "http://my-api.example:9999/stanzas"
   131 ```
   131 ```
   132 
   132 
   133 To enable JSON payloads set
   133 The preferred format can be indicated via the Accept header in response
       
   134 to an OPTIONS probe that mod_rest does on startup, or by configuring:
   134 
   135 
   135 ``` {.lua}
   136 ``` {.lua}
   136 rest_callback_content_type = "application/json"
   137 rest_callback_content_type = "application/json"
   137 ```
   138 ```
   138 
   139