Skip to content

Conversation

j16r
Copy link

@j16r j16r commented May 23, 2022

This exposes a new try_build function on the state manager which allows you to handle an Err Result rather than panicking. For example:

static_resources
     .try_build(&etag_if_none_match, name)                                                                    
     .map_err(|_| Status::NotFound)

@j16r
Copy link
Author

j16r commented Nov 14, 2022

Hey @magiclen any thoughts on this PR?

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.

1 participant