Lines Matching refs:method
57 * @param string $method
68 $method = 'POST'
70 // Normalize method name
71 $method = strtoupper($method);
75 if ($method === 'GET' && !empty($requestBody)) {
79 if (!isset($extraHeaders['Content-Type']) && $method === 'POST' && is_array($requestBody)) {
90 if ($method === 'POST' || $method === 'PUT') {
95 if ($method === 'PUT') {
103 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);