feat(http): the HTTP layer on ClientHTTP1::Fetch and the typed socket error
Crafter.Network master now carries, in their final shape, the pieces the HTTP layer and the SQL broker were written against on a side branch: ClientHTTP1::Fetch follows redirects by RFC 9110 §15.4 on a URL type of its own, and SocketErrorException is a std::system_error with the phase that failed. The broker and the HTTP layer read the errno or the resolver code from code() and the phase from the field, instead of matching message prefixes, and the pin moves to that commit, so the build no longer needs --local against a checkout of the side branch. The messages the run log, the preflight detail and the SQL helper show are unchanged, but for the wording of a refused URL.
This commit is contained in:
parent
101471d81a
commit
51bdd6298a
5 changed files with 19 additions and 20 deletions
|
|
@ -6,7 +6,7 @@ import std;
|
|||
import :Json;
|
||||
|
||||
// The HTTP the driver needs: app_ready's preflight, the OpenRouter catalogue
|
||||
// and key probe. On Crafter.Network's FetchHTTP1, which follows redirects; on
|
||||
// and key probe. On Crafter.Network's ClientHTTP1::Fetch, which follows redirects; on
|
||||
// top of it a status outside 2xx thrown as HttpError, and every other failure
|
||||
// as Error with a fixed text, because those texts reach the run log and
|
||||
// app_ready's detail. Proxies are not consulted (AGENTS.md).
|
||||
|
|
|
|||
Loading…
Reference in a new issue