xp-framework / http

HTTP protocol support for the XP Framework
2 stars 2 forks source link

Always send data in body if a RequestData instance is given #4

Closed thekid closed 9 years ago

thekid commented 9 years ago
$request= $conn->create(new HttpRequest());
$request->setParameters(['a' => 'b']);   // Will choose based on defaults[1]
$request->setParameters(new RequestData(...));  // Will *ALWAYS* use body

Really, this should be separate.

[1]: GET, HEAD, OPTIONS, DELETE = use params, other verbs = use body

kiesel commented 9 years ago

:+1: