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

Ktor requestscope function dsl #2075

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

arnaudgiuliani
Copy link
Member

Add requestScope function to help declare definitions in web request timelife scope.

instead of using:

scope<RequestScope> {
        scopedOf(::ScopeComponent)
    }

it can be replaced:

requestScope {
        scopedOf(::ScopeComponent)
    }

@arnaudgiuliani arnaudgiuliani merged commit ef80c0c into 4.1.0 Dec 13, 2024
6 of 8 checks passed
@arnaudgiuliani arnaudgiuliani deleted the ktor_requestscope_function_dsl branch December 13, 2024 17:06
@arnaudgiuliani arnaudgiuliani added this to the 4.1.0 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant