29. Pull resources using HTTP/1.1¶
Once you understand that there are different fetch backends, you can configure the server to pull resources using HTTP/1.1. There are two different ways to go about this, using different fetch backends.
http-fetch fetch backend¶
This backend supports pooling, and specifying both a
host and a
HTTPS is not supported
To use it, instead of having
root-dir in the devlove contain a string, it should contain the backend configuration.
--- shimmercat-devlove: domains: elec development.aspdotnetstorefront.outdoorexperten.se: root-dir: fetch-backend: http http-port: lookup(development.aspdotnetstorefront.outdoorexperten.se):80 use-host: development.aspdotnetstorefront.outdoorexperten.se views-dir: views-dir changelist-settings: tOld: 7200 tNew: 20
views-dirmust be given if we are using any backend which is not a local-filesystem backend.
The same as in other cases, it’s important to set the
It’s also possible to specify a key
path-prefixat the same level than
fetch-backendwith a fragment to prepend to the path.
use-consultant fetch backend¶
This uses one of the consultants configured for this electric domain, the one that you name it.
As such, it supports HTTPS and pooling, although such configuration is just taken from the consultant.
To use it, have an object under
root-dir with a keyword
use-consultant and the name of the consultant to use (which you should have also defined):
shimmercat-devlove: domains: elec www.supershoes.com: consultant: connect-to: "8080" root-dir: use-consultant: default