src/http/Request.php
public function content ()
	{
		$contentType = @$this->header['content-type'];

		$this->deCookie();
		$this->deUrls();

		switch (strtolower($contentType)) {
			case "application/x-www-form-urlencoded":
				parse_str($this->raw_context, $output);
				$this->body = $output ?: [];
				break;
			case "multipart/form-data":
				$this->multipartFromData();
				break;
			default:

				break;
		}


		return $this;
	}
public function content ()
	{
		$contentType = @$this->header['content-type'];

		$this->deCookie();
		$this->deUrls();

		switch (strtolower($contentType)) {
			case "application/x-www-form-urlencoded":
				parse_str($this->raw_context, $output);
				$this->body = $output ?: [];
				break;
			case "multipart/form-data":
				$this->multipartFromData();
				break;
			default:

				break;
		}


		return $this;
	}
public function content ( ) { $ contentType = @ $ this -> header [ 'content-type' ] ; $ this -> deCookie ( ) ; $ this -> deUrls ( ) ; switch ( strtolower ( $ contentType ) ) { case "application/x-www-form-urlencoded" : parse_str ( $ this -> raw_context , $ output ) ; $ this -> body = $ output ? : [ ] ; break ; case "multipart/form-data" : $ this -> multipartFromData ( ) ; break ; default : break ; } return $ this ; }
格式化payload
格式化payload