패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.4.3

shelf

조합과 간편한 재사용을 장려하는 웹 서버 미들웨어 모델입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1570만
좋아요
1.1천
Pub 점수
160

패키지 설치

flutter pub add shelf

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Shelf는 웹 서버와 미들웨어를 구축하기 위한 가벼우면서도 모듈식 프레임워크를 제공하는 Dart 패키지입니다. 구성성에 중점을 두어 간단하고 기능적인 API를 통해 유연하고 재사용 가능한 서버 로직을 만들 수 있도록 합니다. 미들웨어 컴포넌트를 연결하여 요청과 응답을 효율적으로 처리할 수 있어 소규모 서비스부터 복잡한 백엔드 시스템까지 적합합니다. 단순성과 상호 운용성을 고려해 설계되었으며 Dart 생태계와 원활하게 통합되며 웹, 모바일, 데스크톱 등 다양한 플랫폼을 지원합니다.

사용 사례

  • REST API 구축
  • 사용자 지정 웹 서버 만들기
  • 요청/응답 미들웨어 구현
  • 마이크로서비스 개발
  • HTTP 라우팅 및 인증 처리

주요 기능

  • 모듈러리 미들웨어 아키텍처
  • 조합하기 쉬운 요청 핸들러
  • 크로스 플랫폼 지원
  • 경량이며 최소한의 오버헤드
  • 스트리밍 및 비동기 작업에 대한 내장 지원

적합한 대상

  • 백엔드 개발자
  • API 생성자
  • Dart 기반 웹 서비스 빌더
  • 마이크로서비스 아키텍트
  • HTTP 서버 개념 학습

고려 사항

  • 완전한 웹 프레임워크가 아님(라우팅을 위해 추가 패키지 필요)
  • 더 큰 프레임워크에 비해 내장 기능이 제한적
  • 고급 기능을 사용하려면 수동 설정이 필요합니다

원본 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.

카테고리

의존성

의존성 목록 6 개

소스 저장소

이 패키지를 사용하는 프로젝트

순위