GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DANCER2::CORE::HTTP (3)

.ds Aq ’

NAME

Dancer2::Core::HTTP - helper for rendering HTTP status codes for Dancer2

CONTENTS

VERSION

version 0.166001

FUNCTIONS

    status(status_code)



    Dancer2::Core::HTTP->status(200); # returns 200

    Dancer2::Core::HTTP->status(Not Found); # returns 404

    Dancer2::Core::HTTP->status(bad_request); # 400



Returns a HTTP status code. If given an integer, it will return the value it received, else it will try to find the appropriate alias and return the correct status.

    status_message(status_code)



    Dancer2::Core::HTTP->status_message(200); # returns OK

    Dancer2::Core::HTTP->status_message(error); # returns Internal Server Error



Returns the HTTP status message for the given status code.

AUTHOR

Dancer Core Developers

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Alexis Sukrieh.

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DANCER2::CORE::HTTP (3) 2016-01-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.