A small REST query library for PocketMine-MP
- GET
- POST
- PUT
- PATCH
- DELETE
- OPTIONS
- HEAD
METHOD | EXAMPLE |
---|---|
GET | [] |
POST | ['field1' => 'data', 'field2' => 'data2'] |
The WebMaster class receives 3 parameters as a constructor function, first the address, according to the query context (which receives the query result as a parameter), and finally the array with fields.
- How to correctly call the class:
$query = new \your\directory\WebMaster('https://localhost', function($result) { var_dump($request); }, [/*WHAT COMES HERE IS REGARDING THE TABLE ABOVE...*/]);