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

패키지 상세v1.0.5

shelf_proxy

다른 서버로 HTTP 요청을 프록시하는 shelf 핸들러입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1000만
좋아요
94
Pub 점수
160

패키지 설치

flutter pub add shelf_proxy

패키지 개요

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

Shelf Proxy는 HTTP 요청을 다른 서버로 전달하는 Shelf 핸들러를 제공하는 Dart 패키지입니다. Flutter 또는 Dart 애플리케이션 내에서 최소한의 구성으로 프록시 서버를 쉽게 만들 수 있게 해주며, 요청을 가로채고 전달할 수 있습니다. 백엔드 통합, API 게이트웨이 패턴, 또는 테스트 환경에 적합하며, 모바일, 웹, 데스크톱을 포함한 모든 주요 플랫폼을 지원합니다. 이 패키지는 Shelf 생태계와 원활하게 통합되어 들어오는 요청을 처리하고 외부 서비스로 라우팅하는 데 유연성을 제공합니다.

사용 사례

  • API 게이트웨이 구현
  • 테스트 및 개발 프록시
  • 백엔드 서비스 통합
  • 요청 로깅 및 모니터링
  • 크로스 오리진 요청 전달

주요 기능

  • Shelf와의 간단한 통합
  • 모든 Dart 플랫폼을 지원합니다
  • 사용자 지정 가능한 대상 URL
  • 투명한 요청/응답 전달
  • 확장 가능한 미들웨어 호환성

적합한 대상

  • Shelf를 사용하는 백엔드 개발자
  • 프록시 로직이 필요한 풀스택 플러터 앱
  • 요청 라우팅이 필요한 개발/테스트 환경
  • 마이크로서비스 통신 설정
  • API 모킹 및 디버깅

고려 사항

  • 다운스트림 실패에 대한 적절한 오류 처리가 필요합니다
  • 대상 서버에 따라 지연이 발생할 수 있습니다
  • 생산 환경 사용을 위해 보안 설정이 필요합니다
  • 제한된 내장 인증 메커니즘
  • CORS 정책은 외부에서 관리되어야 합니다

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

소스 저장소

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