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

패키지 상세v1.1.5

shelf_router

URL 매개변수, 중첩 라우터 및 소스 주석에서 생성된 라우터를 지원하는 shelf 웹 프레임워크용 편리한 요청 라우터입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
61.5만
좋아요
324
Pub 점수
160

패키지 설치

flutter pub add shelf_router

패키지 개요

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

Shelf Router는 Shelf 웹 프레임워크용 가볍고 표현력이 풍부한 라우팅 라이브러리로, URL 매개변수, 중첩 라우터 및 소스 주석을 통한 컴파일 시 라우트 생성을 지원하여 HTTP 경로를 정의할 수 있게 해줍니다. 깔끔한 문법과 개선된 구조를 통해 요청 처리를 단순화합니다. 다양한 플랫폼에서 Dart 애플리케이션을 위한 확장 가능한 백엔드 서비스 개발에 이상적입니다.

사용 사례

  • RESTful API 구축
  • 동적 URL 경로 처리
  • 모듈형 백엔드 서비스 만들기
  • 주석에서 경로 생성
  • 셰프 기반 서버와의 통합

주요 기능

  • URL 매개변수 지원
  • 중첩 라우터 조합
  • 소스 주석 기반 경로 생성
  • 클린하고 읽기 쉬운 경로 정의
  • Shelf와의 원활한 통합

적합한 대상

  • Dart 백엔드 개발자
  • API 서비스 빌더
  • 크로스 플랫폼 서버 앱
  • 선반 프레임워크 사용자
  • 구조화된 라우팅이 필요한 프로젝트

고려 사항

  • Shelf 프레임워크가 필요합니다
  • Dart 서버 환경에 한정
  • 주석 처리에는 빌드 단계가 필요합니다
  • 클라이언트 측 라우팅에 적합하지 않습니다
  • 코드 생성을 위해 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 개

소스 저장소

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

순위