Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft: add missing response fields #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kennedymwavu
Copy link
Collaborator

closes #11

@kennedymwavu kennedymwavu linked an issue Oct 22, 2024 that may be closed by this pull request
12 tasks
Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for hopeful-euclid-1adea1 ready!

Name Link
🔨 Latest commit 9b0c17c
🔍 Latest deploy log https://app.netlify.com/sites/hopeful-euclid-1adea1/deploys/6717c6a5580ec80008ef2b15
😎 Deploy Preview https://deploy-preview-12--hopeful-euclid-1adea1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.


```r
app$get("/error", \(req, res){
res$status(500)
res$set_status(500L)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could change that to the setter?

https://github.com/ambiorix-web/ambiorix/blob/b23dc4e6a549cbc543ca9938b09d56a11be7e0ae/R/response.R#L578

res$status <- 500

I find it more readable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, agreed.
i'm actually discovering that now :/

@JohnCoene
Copy link
Member

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add missing response fields
2 participants