示例#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());
 }