Skip to content

Commit

Permalink
Add HTTPServerRequest.serverSettings
Browse files Browse the repository at this point in the history
Makes a const reference to HTTPServerSettings accessible to HTTP
delegates.

Signed-off-by: Luca Niccoli <[email protected]>
  • Loading branch information
lniccoli committed Jan 15, 2015
1 parent 36858b2 commit 88941f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/vibe/http/server.d
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,14 @@ final class HTTPServerRequest : HTTPRequest {
Session session;
}

package {
/** The settings of the server serving this request.
*/
@property const(HTTPServerSettings) serverSettings() const
{
return m_settings;
}
}

this(SysTime time, ushort port)
{
Expand Down

0 comments on commit 88941f5

Please sign in to comment.