पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.1.5

shelf_router

shelf web-फ्रेमवर्क के लिए एक सुविधाजनक अनुरोध रूटर, जिसमें URL-पैरामीटर, नेस्टेड रूटर और स्रोत अनोटेशन से उत्पन्न रूटर का समर्थन है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
6.2 लाख
लाइक
324
Pub अंक
160

पैकेज इंस्टॉल करें

flutter pub add shelf_router

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Shelf Router एक हल्का, व्यक्तिगत रूप से लेखन वाली मार्गदर्शन पुस्तकालय है जो Shelf वेब फ्रेमवर्क के लिए है, जिसमें HTTP मार्गों को URL पैरामीटर, नेस्टेड रूटर और स्रोत अनोटेशन के माध्यम से संकलन-समय मार्ग उत्पादन के समर्थन के साथ परिभाषित करने की अनुमति देता है। यह साफ वाक्य रचना और सुधारित संगठन के माध्यम से अनुरोध हैंडलिंग को सरल बनाता है। Dart एप्लिकेशन में विभिन्न प्लेटफॉर्म पर विस्तारशील बैकएंड सेवाओं के निर्माण के लिए उपयुक्त है।

उपयोग

  • RESTful APIs का निर्माण
  • डायनामिक URL रूट्स का हैंडलिंग
  • मॉड्यूलर बैकएंड सेवाओं का निर्माण
  • अनुमानों से मार्ग उत्पन्न करना
  • शेल्फ-आधारित सर्वर के साथ एकीकरण

मुख्य विशेषताएँ

  • URL पैरामीटर समर्थन
  • नेस्टेड रूटर संयोजन
  • स्रोत अनुमान-आधारित मार्ग उत्पादन
  • साफ, पढ़ने योग्य मार्ग परिभाषाएं
  • Shelf के साथ निरंतर एकीकरण

इनके लिए उपयुक्त

  • Dart बैकएंड विकासकर्मी
  • API सेवा निर्माता
  • क्रॉस-प्लेटफ़ॉर्म सर्वर एप्लिकेशन
  • शेल्फ फ्रेमवर्क उपयोगकर्ता
  • संरचित रूटिंग की आवश्यकता वाले प्रोजेक्ट

विचार योग्य बातें

  • Shelf फ्रेमवर्क की आवश्यकता है
  • डार्ट सर्वर वातावरणों तक सीमित
  • एनोटेशन प्रसंस्करण को बिल्ड चरण की आवश्यकता होती है
  • ग्राहक-पक्ष रूटिंग के लिए उपयुक्त नहीं
  • कोड जनरेशन के लिए build_runner पर निर्भर

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Build Status

About Shelf

Shelf makes it easy to create and compose web servers and parts of web servers. How?

  • Expose a small set of simple types.
  • Map server logic into a simple function: a single argument for the request, the response is the return value.
  • Trivially mix and match synchronous and asynchronous processing.
  • Flexibility to return a simple string or a byte stream with the same model.

It was inspired by Connect for NodeJS and Rack for Ruby.

See the package:shelf readme for more information.

Packages

Package Description Issues Version
shelf A model for web server middleware that encourages composition and easy reuse. issues pub package
shelf_packages_handler A shelf handler for serving a packages/ directory. issues pub package
shelf_proxy A shelf handler for proxying HTTP requests to another server. issues pub package
shelf_router A convenient request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations. issues pub package
shelf_router_generator A package:build-compatible builder for generating request routers for the shelf web-framework based on source annotations. issues pub package
shelf_static Static file server support for the shelf package and ecosystem. issues pub package
shelf_test_handler A Shelf handler that makes it easy to test HTTP interactions. issues pub package
shelf_web_socket A shelf handler that wires up a listener for every connection. issues pub package
_shelf_compliance HTTP/1.1 compliance and hardening tests. issues (not published)

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 3 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

रैंकिंग