How can you configure Bailador to serve content via TLS (HTTPS)?

Viewed 196

I have enjoyed experimenting with Bailador for some time now. It is easy to set up and use for plain HTTP requests, but I would like to serve content over HTTPS.

Some of the Request methods seem to hint 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;
}

Plus the cookies have force-https related stuff in them as well.

I have scoured for documentation and examples that indicate how/if HTTPS is supported, but with no success yet.

So, can I serve content over HTTPS in Bailador? If so, how?

1 Answers
Related