Falcon v1.2.0 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “Falcon Falcon FAQ User Guide Introduction Installation Quickstart Tutorial Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Redirection Middleware Hooks Routing Utilities Falcon? Instances of falcon.API are first-class WSGI apps, so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you would simply wrap your api instance with a middleware app0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.3.0 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “Falcon Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v1.4.1-post-1 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “We have Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 229 页 | 273.39 KB | 1 年前3
Falcon v1.4.0 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “Falcon Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 230 页 | 271.65 KB | 1 年前3
Falcon v1.4.1 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “Falcon Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 231 页 | 272.52 KB | 1 年前3
Falcon v2.0.0 Documentation" ), 'author': 'Grace Hopper' } resp.media = quote api = falcon.API() api.add_route('/quote', QuoteResource()) What People are Saying “We have been using Falcon Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing Python packages. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 265 页 | 299.57 KB | 1 年前3
Guzzle PHP 5.3 DocumentationGuzzleHttp\Client(); $response = $client->get('http://guzzlephp.org'); $res = $client->get('https://api.github.com/user', ['auth' => ['user', 'pass']]); echo $res->getStatusCode(); // "200" echo $res- Decorators RingPHP Handlers Using a handler Creating a handler Testing Guzzle Clients Mock Subscriber History Subscriber Mock Adapter Test Web Server FAQ Why should I use Guzzle? Does Guzzle require cURL? requests with Guzzle using a GuzzleHttp\ClientInterface object. Creating a Client The procedural API is simple but not very testable; it’s best left for quick prototyping. If you want to use Guzzle in0 码力 | 72 页 | 312.62 KB | 11 月前3
Guzzle PHP 6.5 Documentationcompose client behavior. $client = new GuzzleHttp\Client(); $res = $client->request('GET', 'https://api.github.com/user', [ 'auth' => ['user', 'pass'] ]); echo $res->getStatusCode(); // "200" echo Handlers and Middleware Handlers Middleware HandlerStack Creating a Handler Testing Guzzle Clients Mock Handler History Middleware Test Web Server Using the test server FAQ Does Guzzle require cURL? a base URI $client = new GuzzleHttp\Client(['base_uri' => 'https://foo.com/api/']); // Send a request to https://foo.com/api/test $response = $client->request('GET', 'test'); // Send a request to https://foo0 码力 | 65 页 | 311.42 KB | 11 月前3
Guzzle PHP 7.0 Documentationcompose client behavior. $client = new GuzzleHttp\Client(); $res = $client->request('GET', 'https://api.github.com/user', [ 'auth' => ['user', 'pass'] ]); echo $res->getStatusCode(); // "200" echo Handlers and Middleware Handlers Middleware HandlerStack Creating a Handler Testing Guzzle Clients Mock Handler History Middleware Test Web Server Using the test server FAQ Does Guzzle require cURL? a base URI $client = new GuzzleHttp\Client(['base_uri' => 'https://foo.com/api/']); // Send a request to https://foo.com/api/test $response = $client->request('GET', 'test'); // Send a request to https://foo0 码力 | 64 页 | 310.93 KB | 11 月前3
Falcon v3.1.1 Documentationreadthedocs.io/en/stable/community/help.html] - reference [https://falcon.readthedocs.io/en/stable/api/index.html]) Falcon add-ons and complementary packages [https://github.com/falconry/falcon/wiki] Falcon routing and state management Stable interfaces with an emphasis on backwards-compatibility Simple API modeling through centralized RESTful routing Highly-optimized, extensible code base Easy access to routing and state management Stable interfaces with an emphasis on backwards-compatibility Simple API modeling through centralized RESTful routing Highly-optimized, extensible code base Easy access to0 码力 | 540 页 | 476.60 KB | 1 年前3
共 614 条
- 1
- 2
- 3
- 4
- 5
- 6
- 62













