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

Expose servlet request attributes as call attributes #1771

Closed
wants to merge 1 commit into from

Conversation

jorispz
Copy link

@jorispz jorispz commented Apr 3, 2020

Subsystem
ktor-server-servlet

Motivation
KTOR-424 Get client certificate information from request
This implements feature request #1767 by exposing servlet request attributes as call attributes

Solution
On instantiating a ServletApplicationRequest from a HttpServletRequest, the attributes in the servlet request are extracted and stored in the call attributes using a key that is exposed in a companion object to ServletApplicationRequest.

Note that the map with servlet attributes is also stored as a property on ServletApplicationRequest. This currently serves no purpose but has been done to be symmetrical to the headers. But one could certainly argue this is not useful

@cy6erGn0m cy6erGn0m self-requested a review April 4, 2020 06:54
@stale
Copy link

stale bot commented Jun 3, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 3, 2020
@jorispz
Copy link
Author

jorispz commented Jun 3, 2020

The opinion of stale[bot] notwithstanding, I'd still like to see this merged....

@stale stale bot removed the stale label Jun 3, 2020
@cy6erGn0m cy6erGn0m self-assigned this Oct 27, 2020
@cy6erGn0m cy6erGn0m added this to the 1.5.0 milestone Oct 27, 2020
@jorispz jorispz closed this Dec 13, 2020
@jorispz
Copy link
Author

jorispz commented Dec 13, 2020

Merged as part of #2234

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.

2 participants