Beispiel #1
0
 /**
  * Get the Content-Type header from the message.
  *
  * @return ContentTypeHeader
  */
 public function getContentType()
 {
     if ($this->hasHeader('Content-Type')) {
         return ContentTypeHeader::fromString($this->getHeader('Content-Type'));
     }
     return new ContentTypeHeader('application/octet-stream');
 }