| http :: Server :: Simple :: Mason. HTTP :: SERVER :: SIMPLE :: MASONÀº µ¶¸³Çü ¸ÞÀ̽¼ ¼¹öÀÇ Ãß»ó ¹ÙÀ§ÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
http :: Server :: Simple :: Mason. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Jesse Vincent
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~jesse/
http :: Server :: Simple :: Mason. ű×
http :: Server :: Simple :: Mason. ¼³¸í
http :: server :: Simple :: MasonÀº µ¶¸³Çü ¸ÞÀ̽¼ ¼¹öÀÇ Ãß»ó ¹ÙÀ§ÀÔ´Ï´Ù. http :: server :: simple :: masonÀº µ¶¸³Çü mason server.synopsis ³» $ server = myApp :: Server-> new (); $ Server-> ½ÇÇà; ÆÐÅ°Áö MyApp :: Server; ±âº» QW / http :: Server :: Simple :: Mason /; sub mason_config {¹Ýȯ (comp_root => / tmp / mason-pages '); } Interfacesee http :: Server :: Simple ¹× documentation ¾Æ·¡ÀÇ ¼³¸í¼´Â ¼¹öÀÇ html :: mason :: cgiHandler °´Ã¼¸¦ html :: mason :: cgiHandler °´Ã¼¸¦ ·çÆ®ÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå°¡ óÀ½À̶ó°í ºÒ¸®´ÂÀ̸é, CGI °´Ã¼·Î New_Handler.Handle_Request CGICALLED¸¦ È£ÃâÇÏ¿© »õ Çڵ鷯¸¦ ¸¸µì´Ï´Ù. MasonÀ» È£ÃâÇÏ°í commenthandle_error errorif handle_request dies¿¡ ´ëÇÑ È£ÃâÀ» ½ÇÇàÇÏ°í, handle_error´Â ¿¹¿Ü (Áï, $ @)·Î È£ÃâµË´Ï´Ù. ±âº»ÀûÀ¸·Î ±×°ÍÀº ¾Æ¹« °ÍµµÇÏÁö ¾Ê½À´Ï´Ù. subclass.new_handlercreat¿¡ ÀÇÇØ ÀçÁ¤ÀÇ µÉ ¼ö ÀÖÀ¸¸ç default_mason_config ¹× mason_config ¸Þ¼Òµå·Î ÁöÁ¤µÈ ±¸¼ºÀ¸·Î »õ HTML :: mason :: cgiHandler¸¦ ¹ÝȯÇÕ´Ï´Ù. ÀÌ ¹æ¹ýÀ» Á÷Á¢ ÀüÈ ÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. Mason_Handler´Â óÀ½À¸·Î È£ÃâµË´Ï´Ù. Handler_ClassReturns New_Handler¿¡¼ È£Ãâ µÈ Mason Handler Ŭ·¡½ºÀÇ À̸§À» º¯°æÇÕ´Ï´Ù. html :: mason :: cgiHandler,ÇÏÁö¸¸ ÇÏÀ§ Ŭ·¡½º¿¡¼ html :: mason :: cgihandler.setup_escapesÀÇ ÇÏÀ§ Ŭ·¡½º·Î º¯°æÇÏ·Á´Â °ÍÀº Çڵ鷯 $ handlerÀÇ ¸ÞÀ̽¼ À̽ºÄÉÀÌÇÁ¸¦ ÇÚµå ĸ½¶·Î º¯°æÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, H¿¡¼ <% $ name | h %> ±âº»ÀûÀ¸·Î h http :: server :: simple :: mason :: server :: simple :: mason :: server :: simple :: mason :: server_uri, subclass.mason_configreturns a¿¡¼ ÀÌ°ÍÀ» ¹«½ÃÇÒ ¼ö ÀÖ½À´Ï´Ù. ÇÏÀ§ Ŭ·¡½º Á¤ÀÇ ¸ÞÀ̽¼ Çڵ鷯 ±¸¼º; °ÅÀÇ È®½ÇÈ÷ Àû¾îµµ opp_root.default_mason_configreturns¸¦ ÁöÁ¤ÇÏ°í ½Í½À´Ï´Ù. ±âº» ¸ÞÀ̽¼ Çڵ鷯 ±¸¼º (mason_config Ç׸ñ¿¡ ÀÇÇØ ¹«½Ã µÉ ¼ö ÀÖÀ½) .escape_utf8 scalarrefdoes a css-prustingÇÏÁö¸¸ ¹Ì´Ï¸Ö¸®½ºÆ®°¡ ´ç½ÅÀÌ Áö³ª°¡´Â ¸ðµç HTMLÀÇ ÃÖ¼ÒÇÑÀÇ À̽ºÄÉÀÌÇÁ¸¦ inseScape_uri scalarrefescapes RFC2396 ¿ä±¸ »çÇ׿¡ µû¶ó URI ±¸¼º ¿ä¼Ò : ¡¤ Perl. ¡¤ http :: Server :: Simple. ¡¤ HTML :: Mason.
http :: Server :: Simple :: Mason. °ü·Ã ¼ÒÇÁÆ®¿þ¾î