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

패키지 상세v3.0.2

shelf_packages_handler

`packages/` 디렉터리를 제공하기 위한 shelf 핸들러입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
1210만
좋아요
6
Pub 점수
135

패키지 설치

flutter pub add shelf_packages_handler

패키지 개요

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

`packages/` 디렉터리에서 파일을 제공하는 shelf 핸들러로, 웹 서버 환경에서 Dart 패키지 내의 자산과 리소스에 접근할 수 있게 합니다. Shelf 프레임워크와 원활하게 통합되어 개발 또는 배포 중 패키지 콘텐츠를 전달하는 것을 간편하게 만듭니다. 특히 로컬 개발 환경에서 종속성에서 정적 자산을 제공할 때 특히 유용합니다.

사용 사례

  • 개발 중 패키지 자산 제공
  • 의존 리소스에 대한 로컬 액세스 활성화
  • 패키지 콘텐츠를 사용한 사용자 지정 웹 서버 설정 지원
  • Dart 기반 웹 서버와의 통합

주요 기능

  • `packages/` 디렉터리에서 파일을 제공합니다
  • Shelf 프레임워크와 함께 사용하도록 설계됨
  • Dart 웹 서버와의 간단한 통합
  • 동적 자산 해상도를 지원합니다

적합한 대상

  • 웹 서버용 Shelf를 사용하는 Dart 개발자
  • 패키지 수준의 자산에 액세스가 필요한 도구
  • 패키지 파일 제공이 필요한 개발 환경

고려 사항

  • 생산 배포를 위한 것이 아님
  • Shelf 파이프라인 내에서 적절한 설정이 필요합니다
  • 패키지에서 정적 파일 제공에 국한

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

소스 저장소

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