on master help sign in
Update some Request fields
f71fa94Michael Snoyman
wai/Network/Wai.hs+6−13
@@ -80,22 +80,15 @@ data Request = Request
80 -- /will/ include the leading question mark.
80 -- /will/ include the leading question mark.
81 -- Do not modify this raw value- modify queryString instead.
81 -- Do not modify this raw value- modify queryString instead.
82 , rawQueryString :: B.ByteString
82 , rawQueryString :: B.ByteString
83− -- | Generally the host requested by the user via the Host request header.
84− -- Backends are free to provide alternative values as necessary. This value
85− -- should not be used to construct URLs.
86− , serverName :: B.ByteString
87− -- | The listening port that the server received this request on. It is
88− -- possible for a server to listen on a non-numeric port (i.e., Unix named
89− -- socket), in which case this value will be arbitrary. Like 'serverName',
90− -- this value should not be used in URL construction.
91− , serverPort :: Int
92 , requestHeaders :: H.RequestHeaders
83 , requestHeaders :: H.RequestHeaders
93 -- | Was this request made over an SSL connection?
84 -- | Was this request made over an SSL connection?
94 --
85 --
95− -- This value should /not/ be used, and will be removed in future revisions
86+ -- Note that this value will /not/ tell you if the client originally made
96− -- of WAI. There is no meaningful way that a backend can indicate whether the
87+ -- this request over SSL, but rather whether the current connection is SSL.
97− -- request is actually over a secure channel, due to issues of reverse
88+ -- The distinction lies with reverse proxies. In many cases, the client will
98− -- proxying.
89+ -- connect to a load balancer over SSL, but connect to the WAI handler
90+ -- without SSL. In such a case, @isSecure@ will be @False@, but from a user
91+ -- perspective, there is a secure connection.
99 , isSecure :: Bool
92 , isSecure :: Bool
100 -- | The client\'s host information.
93 -- | The client\'s host information.
101 , remoteHost :: SockAddr
94 , remoteHost :: SockAddr