예제 #1
0
파일: Head.php 프로젝트: bee4/transport
 protected function prepare()
 {
     parent::prepare();
     $this->addOption('body', false);
     //apply MDTM action on the file, if not valid status is 550 the simplest way for HEAD
     $this->addOption('commands.request', ['MDTM ' . $this->getUrl()->path()]);
 }
예제 #2
0
파일: Delete.php 프로젝트: bee4/transport
 protected function prepare()
 {
     parent::prepare();
     $this->addOption('body', false);
     $this->addOption('commands.post', ['DELE ' . $this->getUrl()->path()]);
 }
예제 #3
0
파일: Get.php 프로젝트: bee4/transport
 protected function prepare()
 {
     parent::prepare();
     $this->addOption('url', $this->getUrl());
 }