HTTP

Overview

HTTP and HTTPS location implementation for Qwiratry.

This module registers itself for both http:// and https:// URI schemes. Source locations issue GET requests and return the response body as text. Destination locations issue POST requests and return the original content after the side effect, matching Qwiratry's file destination behavior.

HTTP redirects are delegated to HTTP::Tiny. Non-success responses, including 4xx and 5xx statuses, are reported as X::Qwiratry::IO::LocationError.

Methods

read(Str $location)

Issue a GET request for $location and return the response body as text.

write(Str $location, Mu $content)

Issue a POST request to $location with $content as the request body and return the original content.

Qwiratry--Location--HTTP v0.0.2

HTTP and HTTPS location backend for Qwiratry

Authors

    License

    Dependencies

    HTTP::TinyIO::Socket::SSL:ver<0.0.2+>Qwiratry:ver<0.0.5+>

    Test Dependencies

    Provides

    • Qwiratry::Location::HTTP

    Documentation

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

    Built with Podlite — the markup and publishing tools behind this site.