Pinto::Server(3pm)

✨ Pinto::Server ✨

okay bestie, so this is Pinto::Server β€” it's the web interface to a Pinto repository πŸ’– like, your repo but make it ✨browsable✨. It lives in the User Contributed Perl Documentation section of the manual, so Pinto::Server(3pm), and yes we're gonna walk through the whole thing together, no skimming, no gatekeeping 🫢

Version: version 0.14


🌸 ATTRIBUTES 🌸

  • root β€” the path to the root directory of your Pinto repository. Heads up: the repo has to already exist at that location, this isn't gonna conjure one for you. This attribute is required, so no skipping it πŸ™ˆ
  • auth β€” the hashref of authentication options, but only if you're actually doing authentication inside the server. One of the options must be 'backend', which tells it which Authen::Simple:: class to use. Every other key/value pair gets passed as-is straight to that Authen::Simple class. no vibes-checking in between, just straight through πŸ’…
  • router β€” an object that does the Pinto::Server::Handler role. This little icon is the one doing the actual work: processing the request and handing back a response. main character energy, fr fr πŸ‘‘
  • default_port β€” returns the default port number that the server will listen on. and psst β€” this one is a class attribute, not a per-instance thing 🌈

πŸ’« METHODS πŸ’«

πŸŽ€ to_app()

Returns the application as a subroutine reference. that's it, that's the whole thing ✨

πŸŽ€ call( $env )

Invokes the application with the specified environment. Returns a PSGI-compatible response πŸ¦‹

There is nothing to see here. πŸ‘€

Look at pintod if you want to actually start the server. like, genuinely, that's the one you want, not this πŸ™ˆ


🌟 AUTHOR 🌟

Jeffrey Ryan Thalhammer <jeff@stratopan.com>

This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸ’œ


and that's the whole page, bestie, you ate it πŸ“ this was perl v5.40.1, dated 2025-04-21, straight out of Pinto::Server(3pm) β€” go forth and serve those repos, mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from