classafButter::HttpTerminator
sys::Obj afButter::HttpTerminator : afButter::ButterMiddleware
(Terminator) - A Butter
Terminator for making real HTTP requests. When used in a chain, no other middleware should come after this one. (For they will not be called.)
To use a proxy, set the full proxy URL (as a Uri
) in the request stash under the key afButter.proxy
:
req.stash[afButter.proxy] = `http://proxy.example.org:8069`
- options
SocketOptions? options
- sendRequest
virtual override ButterResponse sendRequest(Butter butter, ButterRequest req)
Makes a real HTTP request.