apache2 :: ÄÁÆ®·Ñ·¯Apache2 Çڵ鷯 ¾ÛÀ»À§ÇÑ ÇÁ·¹ÀÓ ¿öÅ© | |
Áö±Ý ´Ù¿î·Îµå |
apache2 :: ÄÁÆ®·Ñ·¯ ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Mark Hedges
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~markle/
apache2 :: ÄÁÆ®·Ñ·¯ ű×
apache2 :: ÄÁÆ®·Ñ·¯ ¼³¸í
Apache2 Çڵ鷯 ¾ÛÀ»À§ÇÑ ÇÁ·¹ÀÓ ¿öÅ©ÀÔ´Ï´Ù apache2 :: ÄÁÆ®·Ñ·¯´Â °í¼º´É Apache2 Çڵ鷯 ¸ðµâ¿¡¼¸¸ mod_perl ¾ÆÀÌµé ¸¸ ½ÇÇàÇϵµ·Ï ¼³°èµÈ °´Ã¼ ÁöÇâ ÀÀ¿ë ÇÁ·Î±×·¥À»À§ÇÑ °æ·® ÄÁÆ®·Ñ·¯ ÇÁ·¹ÀÓ ¿öÅ©ÀÔ´Ï´Ù. Apache2 ±¸¼º ÆÄÀÏ ¼³Á¤ Apache2 :: Controll :: Dispatch´Â ApacheÀÇ PerlResponseHandler¸¦ Ǫ½ÃÇÏ´Â Apache2 :: Controller :: Dispatch¸¦ ÂüÁ¶ÇϽʽÿÀ. : ÄÁÆ®·Ñ·¯ °´Ã¼¸¦ ÀνºÅϽºÈÇÏ°í URI¿¡ ´ëÇØ ¼±ÅÃÇÑ ¹æ¹ýÀ» È£ÃâÇÕ´Ï´Ù. ÆÐÅ°Áö MyApp :: C :: Foo; ¾ö°ÝÇÑ »ç¿ë; Ä¡¸íÀû => 'ALL'°æ°í¸¦ »ç¿ëÇϽʽÿÀ. ±âº» QW (apache2 :: ÄÁÆ®·Ñ·¯)¸¦ »ç¿ëÇϽʽÿÀ. apache2 :: const -compile => qw (: http)¸¦ »ç¿ëÇϽʽÿÀ. sub oblowed_methods {qw (±âº» bar baz)} # '/ foo'´ÂÀÌ ÄÁÆ®·Ñ·¯ #¿Í µð½ºÆÐÄ¡°¡ L # http://myapp.xyz/foo/ sub default {my ($ self) = @ @_ $ self-> content_type ( 'text / plain'); $ self-> Àμâ ( "Hello, World! "); return apache2 :: const :: http_ok;} # http_ok;} # http://myapp.xyz/foo/bar/biz/schnozz ¼ºê ¹Ù {my ($ self, @path_args) = @_; # @path_args´Â ´ÙÀ½°ú °°½À´Ï´Ù. # QW (Biz Schnozz) # {$ self-> {path_args}} # {$ self-> pnotes -> {path_args}} $ self-> content_type ( 'text / html'); $ self-> Àμâ (q { "¿ì¸® ¸ðµÎ´Â kosh"}); return apache2 :: const :: http_ok;} # http://myapp.xyz/foo/baz sub baz {my ($ self) = @_; return apache2 :: const ::: : http_bad_request°¡ $ self-> param ( 'goo'); # »ó¼Ó Apache2 :: Request Return apache2 :: sonc :: http_forbidden $ self-> param ( 'boz') ne 'noz'; $ self-> content_type ( 'text / plain'); # »ó¼Ó Apache2 :: requestRec $ self-> sendfile ( '/ etc / passwd'); # »ó¼Ó Apache2 :: Requestio ¸®ÅÏ apache2 :: const :: http_ok;} 1; ¿¹»Û °ÍÀ» ±¸ÇöÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀûÀýÇÑ HTTP »óÅ Äڵ带 ¹ÝȯÇÏ¿© ¸ÚÁø ÈÞ½Ä ÀÎÅÍÆäÀ̽º ¶Ç´Â ´Ù¸¥ Á¾·ùÀÇ HTTP ±â¹Ý API¸¦ ÂüÁ¶ÇϽʽÿÀ. Apache2 :: Controller :: RefcardÀÇ "Status"ÂüÁ¶ efache2 :: Controller :: Render :: ÅÛÇø´ ÄÁÆ®·Ñ·¯ Ŭ·¡½ºÀÇ Ãß°¡º£À̽º°¡ HTML WIT¸¦ ·»´õ¸µ ÇÒ ¼ö ÀÖ½À´Ï´Ù. h ÅÛÇø´ toolkit.apache2 :: ÄÁÆ®·Ñ·¯´Â À¯¿¬ÇÑ ±¸¼º, ÀÎÁõ Ç÷¯±×ÀÎ, Apache :: ¼¼¼ÇÀ»À§ÇÑ ÄíÅ° ÃßÀû±â, ÅÛÇø´ ÅøŶÀ» »ç¿ëÇϰųª Apache·Î Á÷Á¢ Àμ⸦ »ç¿ëÇÏ¿© ·»´õ¸µÇÏ´Â ½ºÅ丮Áö ¸ðµ¨¿¡ ´ëÇÑ URL ÆÄ°ß ¸ðµç »ç¶÷µé¿¡°Ô ¸ðµç ÀÏÀ»ÇÏ·Á°íÇÏÁö ¾Ê°í ÇÊ¿äÇÑ °æ¿ì ÀÀ¿ë ÇÁ·Î±×·¥À» ±¸¼ºÇϰųª ¼¼»óÀ» µ¿È½ÃÅ°Áö ¾Ê°íµµ ÀÀ¿ë ÇÁ·Î±×·¥À» ±¸¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×°ÍÀº ±âÁ¸ ¾ÖÇø®ÄÉÀ̼ÇÀ» Èí¼öÇϰųª ÈÞ´ë¿ë code.apache2 :: ÄÁÆ®·Ñ·¯ ÇÏÀ§ Ŭ·¡½º 2 :: request, apache2, apache2¿¡¼ ¸Þ¼Òµå¸¦ °¡Á® ¿À´Â adpache2 Çڵ鷯°¡ ¾ÆÆÄÄ¡ 2 Çڵ鷯·Î Àü¹®È µÈ »õ·Î¿î ÀÀ¿ë ÇÁ·Î±×·¥À»À§ÇÑ ÇÁ·¹ÀÓ ¿öÅ©·Î ÀǵµµË´Ï´Ù. : frequestio, apache2 :: requestutil, apache2 :: log, apache2 :: module.for ´Ù¸¥ apache2 ¿äû È®Àå ¸Þ¼Òµå¸¦ »ç¿ëÇÏ¿© apache2 :: ÄÁÆ®·Ñ·¯¿Í °°Àº ´Ù¸¥ ±âº» Ŭ·¡½º¸¦ »ç¿ëÇÕ´Ï´Ù. ±âº» ¸ñ·Ï¿¡¼ ÀÏÂï ¾÷·ÎµåÇϽʽÿÀ. Apache2 :: Request °´Ã¼°¡ »ý¼ºµÇ¸é Apache2 :: ¾÷·Îµå¿¡¼. Apache2 :: Controller :: Uploads´Â ÄÁÆ®·Ñ·¯ ¸ðµâÀÇ µÎ ¹ø° ±âº» ¸ðµâÀÔ´Ï´Ù. ÆÄÀÏ ¾÷·Îµå¸¦ Çã¿ëÇÏ°í ÀûÀýÇÑ ¹ÙÀ̳ʸ®°¡ ¼³Ä¡µÈ °æ¿ì ´Ù¾çÇÑ Æí¸®ÇÑ ÆÄÀÏ º¯È¯ ·çƾÀ» Á¦°øÇÕ´Ï´Ù. Apache2 :: Controller :: render :: ÅÛÇø´Àº ÅÛÇø´ ÅøŶÀ» »ç¿ëÇÏ´Â ½¬¿î ¹æ¹ý ±âº»ÀûÀ¸·Î ÆäÀÌÁö¸¦ ·»´õ¸µÇÏ·Á¸é ÄÁÆ®·Ñ·¯ URI¿¡ ÇØ´çÇÏ´Â µð·ºÅ丮 ±¸Á¶¿¡¼ ÅÛÇø´À» ¼±ÅÃÇÏ´Â µ¥ ÇÊ¿äÇÑ µð·ºÅ丮 ±¸Á¶Ã¼¿¡¼ ÅÛÇø´À» ¼±ÅÃÇϸé ÀÏ¹Ý ÅؽºÆ® ¶Ç´Â ±âŸ ÄÜÅÙÃ÷ À¯ÇüÀ» ÁöÁ¤ÇÏ°í »ó¼Ó µÈ Apache2 :: Requestio ¸Þ¼µå¸¦ ÅëÇØ Á÷Á¢ Àμâ ÇÒ ¼ö ÀÖ½À´Ï´Ù. rube goldberg ÀåÄ¡ apache2 mod_perl ¸Þ¼Òµå ÁÖÀ§¿¡, ±×°ÍÀº ´ç½ÅÀÇ ¹æ½Ä´ë·Î ¹ÛÀ¸·Î ¸Ó¹°·¯ ÀÖÀ¸¸ç, it¸¦ º¼ ¶§ $ self¸¦ ÅëÇØ Á÷Á¢ ¾î¶² °ÍµéÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Apache2 :: ÄÁÆ®·Ñ·¯ :: Apache2 ±¸¼º ÆÄÀÏ¿¡¼ ¹ß¼ÛÇÏ¿© ´Ù¾çÇÑ URI¸¦ º¸³À´Ï´Ù. ÆäÀÌÁöº¸±â ¸ðµâ¿¡ ¿äûÇÕ´Ï´Ù. ¾Æ·¡ÀÇ ±¸¼º ¼½¼ÇÀ» ÂüÁ¶ÇϽʽÿÀ. ÀÌ´Â Apache2 :: Controller :: Dispatch :: SimpleÀÇ URI ÆÄ°ßÀ»À§ÇÑ Ç¥ÁØ ¸ÞÄ¿´ÏÁòÀ» Á¦°øÇÏÁö¸¸ URI °æ·Î¿¡¼ ÄÁÆ®·Ñ·¯ ¸ðµâ¿¡ ¸ÅÇεǴ Çؽø¦ Á¦°øÇϱ⠸¸ÇϸéµË´Ï´Ù. ¶Ç´Â µð½ºÆÐÄ¡ Ç÷¯±×ÀÎÀº Å« »çÀÌÆ®ÀÇ TRIE¿Í °°ÀÌ ¶Ç´Â ´Ù¸¥ algorithms.apache2 :: ÄÁÆ®·Ñ·¯¸¦ »ç¿ëÇÏ´Â ´Ù¸¥ ¹æ½ÄÀ¸·Î DispatcherÀÇ find_controller () ¸Þ¼Òµå¸¦ ±¸ÇöÇϱâ À§ÇØ »ý¼º µÉ ¼ö ÀÖ½À´Ï´Ù. Controller´Â °¢ ÄÁÆ®·Ñ·¯ ¸ðµâÀÇ ±âº» ¸ðµâÀÔ´Ï´Ù. ±×·± ´ÙÀ½ ÄÁÆ®·Ñ·¯ ¸ðµâÀº ÄÁÆ®·Ñ·¯ ¾Æ·¡ÀÇ URI °æ·Î·Î Çã¿ëµÇ´Â ¸Þ¼µå À̸§ ¸ñ·ÏÀ» Æ÷ÇÔÇÕ´Ï´Ù. ¼ºê ·çƾ ¼Ó¼ºÀÇ º¹ÀâÇÑ Ã¼°è¸¦ ±¸ÇöÇÏ´Â ´ë½Å ÄÁÆ®·Ñ·¯ ³»ÀÇ ÇÑ À§Ä¡¿¡¼ ¹®¼·Î ÀÛµ¿ÇÏ´Â ¸ñ·ÏÀ» À¯Áö °ü¸®ÇÕ´Ï´Ù. ÀÌ·¸°ÔÇϸé ÄÁÆ®·Ñ·¯ ¸ðµâÀ» ±¸Á¶ÈÇÏ¿© ´Ù¸¥ ¹æ¹ýÀÌÀÖ´Â ´Ù¸¥ ¹æ¹ýÀÌ ÀÖÀ¸¹Ç·Î ÄÁÆ®·Ñ·¯ ¸ðµâÀ» ±¸Á¶È ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
apache2 :: ÄÁÆ®·Ñ·¯ °ü·Ã ¼ÒÇÁÆ®¿þ¾î
ÅÛÇø´ :: °ø±ÞÀÚ :: MD5.
ÅÛÇø®Æ® :: Á¦°øÀÚ :: MD5´Â ÅÛÇø´ ÅøŶÀ» À§ÇØ MD5 ij½Ã µÈ ÄÄÆÄÀÏ µÈ ½ºÄ®¶ó°¡ÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. ...
169