N o v e m b e r 2 8 t h W e d n e s d a y

I f   y o u   d e v e l o p   a n   a p p l i c a i o n   f o r   A p a c h e   p l a t f o r m ,   t h e r e   f o u r   c o r e   o b j e c t s   m u s t   b e   u n d e r s t o o d .     T h e   m o s t   i m p o r t a n t
a r e   t h e   ' s e r v e r ' ,   t h e   T C P   ' c o n n e c t i o n ' ,   a n d   t h e   H T T P   ' r e q u e s t ' ;   t h e   f o u r t h   b a s i c   A p a c h e   o b j e c ,   t h e   ' p r o c e s s ' ,   i s   a   u n i t
o f   t h e   o p e r a t i o n   s y s t e m   r a t h e r   t h a n   t h e   a p p l i c a t i o n   a r c h i t e c u r e .     T h e y   a l l   a r e   r e p r e s e n e t e d   b y   c o r e   d a t a   s t r u c t u r e s
d e f i n e d   i n   t h e   h e a d   f i l e   h t t p d . h   a n d ,   l i k e   o t h e r   c o r e   o b j e c t s   w e   e n c o u n t e r   i n   a p p l i c a t i o n s   d e v e l o p m e n t ,   i s   c o m p l e t e l y
i n d e p e n d e n t   o f   t h e   M P M   i n   u s e .

     A   r e q u e s t _ r e c   o b j e c t   i s   c r e a t e d   w h e n e v e r   A p a c h e   a c c e p t s   a n   H T T P   r e q u e s t   f r o m   a   c l i e n t ,   a n d   i s   d e s t r o y e d   a s   s o o n   a s
A p a c h e   f i n i s h e s   p r o c e s s i n g   t h e   r e q u e s t .     T h e   r e q u e s t _ r e c   o b j e c t   i s   p a s s e d   t o   e v e r y   h a n d l e r   i m p l e m e n t e d   b y   a n y   m o d u l e   i n
t h e   c o u r s e   o f   p r o c e s s i n g   a   r e q u e s t .     I t   h o l d s   a l l   o f   t h e   i n t e r n a l   d a t a   r e l e v a n t   t o   p r o c e s s i n g   a n   H T T P   r e q u e s t .     I t   a l s o
i n c l u d e s   a   n u m b e r   o f   f i e l d s   u s e d   i n t e r n a l l y   t o   m a i n t a i n   s t a t e   a n d   c l i e n t   i n f o r m a t i o n   b y   A p a c h e .

     *   A   r e q u e s t   p o o l ,   f o r   m a n a g e m e n t   o f   o b j e c t s   h a v i n g   t h e   l i f e t i m e   o f   t h e   r e q u e s t .     I t   i s   u s e d   t o   m a n a g e   r e s o u r c e s   a l l o c a t e d
         w h i l e   p r o c e s s i n g   t h e   r e q u e s t .

     *   A   v e c t o r   o f   c o n f i g u r a t i o n   r e c o r d s   f o r   s t a t i c   r e q u e s t   c o n f i g u r a t i o n   ( p e r - d i r e c t o r y   d a t a   s p e c i f i e d   i n   h t t p d . c o n f   o r   . h t a c c e s s ) .

     *   A   v e c t o r   o f   c o n f i g u r a t i o n   r e c o r d s   f o r   t r a n s i e n t   d a t a   u s e d   i n   p r o c e s s i n g .

     *   T a b l e s   o f   H T T P   i n p u t ,   o u t p u t ,   a n d   e r r o r   h e a d e r s .

     *   A   t a b l e   o f   A p a c h e   e n v i r o n m e n t   v a r i a b l e s   ( t h e   e n v i r o n m e n t   a s   s e e n   i n   s c r i p t i n g   e x t e n s i o n s   s u c h   a s   S S I ,   C G I ,   m o d _ r e w r i t e ,   a n d   P H P ) ,
         a n d   a   s i m i l a r   " n o t e s "   t a b l e   f o r   r e q u e s t   d a t a   t h a t   s h o u l d   n o t   b e   s e e n   b y   s c r i p t s .

     *   P o i n t e r s   t o   a l l   o t h e r   r e l e v a n t   o b j e c t s ,   i n c l u d i n g   t h e   c o n n e c t i o n ,   t h e   s e r v e r ,   a n d   a n y   r e l a t e d   r e q u e s t   o b j e c t s .

     *   P o i n t e r s   t o   t h e   i n p u t   a n d   o u t p u t   f i l t e r   c h a i n s .

     *   T h e   U R I   r e q u e s t e d ,   a n d   t h e   i n t e r n a l   p a r s e d   r e p r e s e n t a t i o n   o f   i t ,   i n c l u d i n g   t h e   h a n d l e r   a n d   f i l e s y s t e m   m a p p i n g . 
 
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值