분류, 패키지 및 저장소 검색

패키지 상세v1.2.0

shelf_static

shelf 패키지 및 생태계를 위한 정적 파일 서버 지원.

AndroidiOSmacOSWindowsLinux
30일 다운로드
1260만
좋아요
98
Pub 점수
160

패키지 설치

flutter pub add shelf_static

패키지 개요

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

Shelf Static은 Shelf 웹 서버 프레임워크용 정적 파일 제공 기능을 제공하는 Dart 패키지입니다. 개발자가 지정된 디렉터리에서 HTML, CSS, JavaScript 및 이미지와 같은 정적 자산을 제공할 수 있게 해주며, 간단한 웹 애플리케이션 호스팅이나 동적 API와 함께 프론트엔드 리소스를 제공하는 데 이상적입니다. Shelf 생태계 위에 구축되어 있으며, 다른 Shelf 미들웨어 및 핸들러와 원활하게 통합됩니다. 이 패키지는 효율적인 파일 캐싱, 컨텐츠 유형 감지 및 선택적 디렉터리 목록 기능을 지원합니다.

사용 사례

  • 정적 프론트엔드 파일 제공
  • 간단한 웹사이트 호스팅
  • API용 자산 배달 제공
  • 로컬 개발 서버 활성화
  • 하이브리드 앱 백엔드 지원

주요 기능

  • Shelf와의 간편한 통합
  • 자동 콘텐츠 유형 감지
  • 디렉터리 목록 지원
  • 성능을 위한 파일 캐싱
  • 사용자 정의 가능한 루트 디렉터리

적합한 대상

  • Shelf를 사용하는 웹 개발자
  • 풀스택 Dart 애플리케이션
  • 로컬 개발 환경
  • 간단한 API + 정적 사이트 설정
  • 파일 제공이 필요한 백엔드 서비스

고려 사항

  • 대규모 생산에 적합하지 않음
  • 수동 보안 구성이 필요합니다
  • 압축과 같은 제한된 고급 기능
  • 내장 인증 없음
  • 작은부터 중간 규모의 정적 파일 요구 사항에 가장 적합

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

카테고리

의존성

의존성 목록 5 개

소스 저장소

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