ColdBox noob question I'm sure but... Is there a b...
# box-products
b
ColdBox noob question I'm sure but... Is there a built-in mechanism to tell ColdBox to use "my.custom.Response" in place of system.web.context.Response (without having to modify core ColdBox code)? I guess my hope is that, buried somewhere in all the handy ColdBox configuration options is a setting I'm just missing. https://apidocs.ortussolutions.com/coldbox/6.0.0/coldbox/system/web/context/Response.html Basically, I just want a little more control than the methods in that component give me. For example, I'd like to remove the pagination struct from certain responses.
Just ran across another CB related blog post from @wil-shiftinsert to check out - https://shiftinsert.nl/problem-details-for-http-apis-modifying-your-coldbox-rest-handler-response/
As expected, that was super simple 🙂
w
Exactly. That was quite a long post. But overriding the response object is in the manual
b
I searched the docs but never found that entry. it took googling and your link to it to get me there heh
w
You just have to find it. Actually it is also in the release notes of cb6. I created the entry you mentioned so it wa easier to fond. But no 🤣
🤣 1
And yes it is super simple but not very obvious.. and not many people needing it
👍 1
b
Well thanks for the post. Lately, I think I use your site as much as ortus docs 🙂