smangelsdorf on refine-test-helpers
smangelsdorf on master
Remove lifetime from TestRespon… Favour direct access over TestS… Merge pull request #75 from got… (compare)
bradleybeddoes on test-helpers-and-new-tree
Merge branch 'router-builder' i… Support sub-router delegation i… (compare)
bradleybeddoes on refine-test-helpers
Favour direct access over TestS… (compare)
$ curl -k -v https://127.0.0.1:8080/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
* WARNING: disabling hostname validation also disables SNI.
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate: Internet Widgits Pty Ltd
> GET / HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.54.1
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
< Set-Cookie: _gotham_session=h0FZIHqMjF52RaExN72-qYCLKaox_SV6v8pMhroJOoCAXVsC-oBIPCF1WzuWETzGSQMuDtQMxGSRC3RY8yKnpw; HttpOnly; secure; SameSite=lax
< X-Runtime-Microseconds: 568
< Transfer-Encoding: chunked
< Date: Mon, 18 Dec 2017 06:02:35 GMT
<
* Connection #0 to host 127.0.0.1 left intact
relative URL without a base%
ChristophWurst but basically you'll need it for anything that should perform async actions on the same event loop I guess
X, get it from state.
Request as it appeared in the 0.1 API.
ChristophWurst it should suffice to get a reference, at least in the case of hyper: https://docs.rs/hyper/0.11.9/hyper/client/struct.Client.html#method.new
ChristophWurst I'd be happy to dig into the Gotham code and see how we could add that
ChristophWurst unless you're already working on that
ChristophWurst btw, what are your plans for the next Gotham release?
ChristophWurst e.g. will there be a 0.2 with the new router API?
ChristophWurst (I've used it for a few test projects and it works really well)