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

패키지 상세v1.6.0

http

HTTP 요청을 위한 조합 가능하고 다중 플랫폼이며 Future 기반의 API입니다.

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

패키지 설치

flutter pub add http

패키지 개요

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

http 패키지는 Dart 및 Flutter 애플리케이션에서 HTTP 요청을 수행하기 위한 유연하고 크로스플랫폼 솔루션을 제공합니다. Future 기반으로 구현되어 있으며, Android, iOS, Web, macOS, Windows, Linux에서 동기 및 비동기 작업을 지원합니다. 이 패키지는 구성 가능성을 중시하여 사용자 정의 헤더, 타임아웃, 인터셉터를 갖춘 HTTP 클라이언트를 쉽게 생성하고 관리할 수 있도록 합니다. GET, POST, PUT, DELETE 요청과 같은 일반적인 작업을 간소화하여 RESTful API 및 웹 서비스와의 통합에 이상적입니다.

사용 사례

  • REST API 사용하기
  • 폼 데이터 전송
  • JSON 응답 처리
  • 인증된 요청 보내기
  • 스트리밍 파일 다운로드
  • HTTP 호출 가로채기

주요 기능

  • 미래 기반의 API
  • 다중 플랫폼 지원
  • 사용자 정의 가능한 클라이언트 인스턴스
  • 내장된 JSON 처리
  • 요청/응답 가로채기
  • 헤더 및 인증 지원

적합한 대상

  • Flutter 모바일 앱
  • 웹 애플리케이션
  • 데스크톱 앱
  • API 통합 프로젝트
  • 백엔드 서비스 통신

고려 사항

  • 수동 오류 처리가 필요합니다
  • 내장 캐시 없음
  • 기본 HTTP 작업에 제한됨
  • 복잡한 네트워크 시나리오에 적합하지 않습니다
  • 고급 기능을 위해 외부 종속성에 의존합니다
  • WebSocket 지원을 포함하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Build Status

A composable, Future-based library for making HTTP requests.

package:http contains a set of high-level functions and classes that make it easy to consume HTTP resources. It's multi-platform, and supports mobile, desktop, and the browser.

Packages

Package Description Version
cronet_http An Android Flutter plugin that provides access to the Cronet HTTP client. pub package
cupertino_http A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. pub package
flutter_http_example An Flutter app that demonstrates how to configure and use package:http. —
http A composable, multi-platform, Future-based API for HTTP requests. pub package
http2 A HTTP/2 implementation in Dart. pub package
http_client_conformance_tests A library that tests whether implementations of package:http's Client class behave as expected.
http_multi_server A dart:io HttpServer wrapper that handles requests from multiple servers. pub package
http_parser A platform-independent package for parsing and serializing HTTP formats. pub package
http_profile A library used by HTTP client authors to integrate with the DevTools Network View. pub package
ok_http An Android Flutter plugin that provides access to the OkHttp HTTP client and the OkHttp WebSocket API. pub package
web_socket Any easy-to-use library for communicating with WebSockets that has multiple implementations. pub package
web_socket_channel StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. package issues
web_socket_conformance_tests A library that tests whether implementations of package:web_socket's WebSocket class behave as expected.

Contributing

If you'd like to contribute to any of these packages, see the Contributing Guide.

카테고리

의존성

의존성 목록 4 개

소스 저장소

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

순위