Skip to content

expose server state#675

Merged
jbr merged 1 commit intohttp-rs:masterfrom
jbr:expose-server-state
Aug 4, 2020
Merged

expose server state#675
jbr merged 1 commit intohttp-rs:masterfrom
jbr:expose-server-state

Conversation

@jbr
Copy link
Member

@jbr jbr commented Aug 3, 2020

Currently there's no way to get access to the state on a Server.

I ran into this trying to test an app with a database pool in the State. I had a reference to a Server and wanted to execute statements against the database, but there was no way of doing so.

How Has This Been Tested?

doctest

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@jbr jbr requested review from Fishrock123 and yoshuawuyts August 3, 2020 22:40
@jbr jbr merged commit fd6945c into http-rs:master Aug 4, 2020
@Fishrock123 Fishrock123 mentioned this pull request Oct 17, 2020
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.

2 participants