EventHttpRequest::addHeader
(PECL event >= 1.4.0-beta)
EventHttpRequest::addHeader — Adds an HTTP header to the headers of the request
Beschreibung
$key
   , 
    string
     $value
   , 
    int
     $type
   ): boolAdds an HTTP header to the headers of the request.
Parameter-Liste
- 
     
key - 
     
Header name.
 - 
     
value - 
     
Header value.
 - 
     
type - 
     
One of
EventHttpRequest::*_HEADERconstants . 
Rückgabewerte
   Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.
  
Siehe auch
- EventHttpRequest::removeHeader() - Removes an HTTP header from the headers of the request
 
                    
                    
                    
                    
                    
          