quick question: should I just use the built-in `Ge...
# box-products
m
quick question: should I just use the built-in
GetHttpRequestData
CF function, or does ColdBox provide any better way to access request headers?
ah, I think I found it: arguments.event.getHTTPHeader()
b
@mithlond There's nothing "wrong" per say with using the BIF, but if you're doing testing with your app, it's much easier to mock these values when you use the ColdBox wrappers for them
👍 1
But methods like renderData() also have args for that as well so you can render JSON and set the code at the same time
💯 1
m
thanks!