PHP Velho Oeste 2024

HttpMessage sınıfı

(Bir sürüm bilgisi bulunamadı; sadece SVN'de olabilir.)

Sınıf Sözdizimi

HttpMessage implements Iterator , Countable , Serializable {
public void addHeaders ( array $başlıklar [, bool $ekle = false ] )
public void __construct ([ string $ileti ] )
public HttpMessage detach ( void )
static public HttpMessage factory ([ string $ham_ileti [, string $sınıf_adı = "HttpMessage" ]] )
static public HttpMessage fromEnv ( int $ileti_türü [, string $sınıf_adı = "HttpMessage" ] )
static public HttpMessage fromString ([ string $ham_ileti [, string $sınıf_adı = "HttpMessage" ]] )
public string getBody ( void )
public string getHeader ( string $başlık )
public array getHeaders ( void )
public string getHttpVersion ( void )
public HttpMessage getParentMessage ( void )
public string getRequestMethod ( void )
public string getRequestUrl ( void )
public int getResponseCode ( void )
public string getResponseStatus ( void )
public int getType ( void )
public string guessContentType ( string $sihirli_dosya [, int $sihirli_kip = MAGIC_MIME ] )
public void prepend ( HttpMessage $ileti [, bool $başa = true ] )
public HttpMessage reverse ( void )
public bool send ( void )
public void setBody ( string $gövde )
public void setHeaders ( array $başlıklar )
public bool setHttpVersion ( string $sürüm )
public bool setRequestMethod ( string $yöntem )
public bool setRequestUrl ( string $url )
public bool setResponseCode ( int $kod )
public bool setResponseStatus ( string $durum )
public void setType ( int $tür )
public HttpRequest|HttpResponse toMessageTypeObject ( void )
public string toString ([ bool $ebeveyni_içer = false ] )
}

Sınıf Üyeleri

Özellikler

Nesne örneği özellikleri
Değiştirici Türü İsmi Açıklama
protected int type ileti türü
protected string body ileti gövdesi
protected float httpVersion HTTP protokol sürümü
protected array headers ileti başlıkları
protected string requestMethod istek yöntemi adı
protected requestUrl string istek URL'si
protected int responseCode yanıt kodu
protected string responseStatus yanıt durumu iletisi
protected HttpMessage parentMessage ebeveyn iletiye başvuru

Bilginize:

Bu öntanımlı özelliklerin hiçbirine gönderimle, dizi anahtarı/indisiyle ve arttırım/eksiltim işlemleri aracılığıyla erişilemez.

Öntanımlı Sabitler

Türü İsmi Açıklama
int TYPE_NONE İleti belli bir türde değildir.
int TYPE_REQUEST İleti, istek tarzı bir HTTP iletisidir.
int TYPE_RESPONSE İleti, yanıt tarzı bir HTTP iletisidir.

İçindekiler

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top