I enjoyed experimenting with Bailador for some time. It is easy to configure and use for simple HTTP requests, but I would like to serve content via HTTPS.
Some of the methods Requestseem to suggest that HTTPS requests are possible:
method scheme { $.env<p6w.url-scheme> || 'http' }
method secure { so self.scheme eq 'https' }
And the headers method:
method headers () {
return %!headers if %!headers;
for $.env.keys.grep(rx:i/^[HTTP||CONTENT]/) -> $key {
my $field = S:i/HTTPS?_// given $key;
%!headers{$field.uc} = $.env{$key};
}
return %!headers;
}
In addition, cookies also have https-related material.
I looked through the documentation and examples showing how / if HTTPS is supported, but so far failed.
So, can I serve content via HTTPS in Bailador? If so, how?
source
share