Guzzle PHP 5.3 Documentation
contexts, or sockets. $client = new GuzzleHttp\Client(); $response = $client->get('http://guzzlephp.org'); $res = $client->get('https://api.github.com/user', ['auth' => ['user', 'pass']]); echo $res->getStatusCode(); // Outputs the JSON decoded data // Send an asynchronous request. $req = $client->createRequest('GET', 'http://httpbin.org', ['future' => true]); $client->send($req)->then(function ($response) { GuzzleHttp\ClientInterface object. use GuzzleHttp\Client; $client = new Client(); $response = $client->get('http://httpbin.org/get'); // You can use the same methods you saw in the procedural API $response = $client-0 码力 | 72 页 | 312.62 KB | 10 月前3Guzzle PHP 5.3 Documentation
contexts, or sockets. $client = new GuzzleHttp\Client(); $response = $client->get('http://guzzlephp.org'); $res = $client->get('https://api.github.com/user', ['auth' => ['user', 'pass']]); echo $res->getStatusCode(); // Outputs the JSON decoded data // Send an asynchronous request. $req = $client->createRequest('GET', 'http://httpbin.org', ['future' => true]); $client->send($req)->then(function ($response) { echo Quickstart 5 Guzzle use GuzzleHttp\Client; $client = new Client(); $response = $client->get('http://httpbin.org/get'); // You can use the same methods you saw in the procedural API $response = $client-0 码力 | 63 页 | 275.75 KB | 10 月前3Falcon v3.1.1-b3 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 little as possible while remaining highly effective. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.1-b1 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 little as possible while remaining highly effective. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.1-a Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 little as possible while remaining highly effective. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.1 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 little as possible while remaining highly effective. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.1-rc1 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 little as possible while remaining highly effective. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.0.0 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.1 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.1.0 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3.1 Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 little as possible while remaining highly effective. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future Here is a simple example from Falcon’s README, showing how to get started writing an app. WSGI ASGI # examples/things.py # Let's get this party started! from wsgiref.simple_server import make_server0 码力 | 362 页 | 1.29 MB | 1 年前3
共 84 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9