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

패키지 상세v4.1.2

http_parser

HTTP 형식을 파싱하고 직렬화하기 위한 플랫폼 독립형 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1310만
좋아요
271
Pub 점수
160

패키지 설치

flutter pub add http_parser

패키지 개요

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

http_parser 패키지는 HTTP 헤더, 상태 라인 및 기타 HTTP 형식 구성 요소를 파싱하고 직렬화하기 위한 플랫폼 독립적인 유틸리티를 제공합니다. Android, iOS, 웹, macOS, Windows, Linux 등 모든 주요 플랫폼에서 작동하도록 설계되었습니다. 완전한 HTTP 클라이언트에 의존하지 않고도 HTTP 메시지를 효율적으로 처리할 수 있는 경량 라이브러리로, 저수준 HTTP 작업에 적합합니다. 하위 플랫폼에 관계없이 일관된 동작을 보장하여 개발자가 예측 가능한 파싱 결과를 얻을 수 있도록 신뢰할 수 있는 네트워크 통신 계층을 구축할 수 있게 합니다.

사용 사례

  • 사용자 정의 HTTP 클라이언트에서 HTTP 헤더 파싱
  • HTTP 요청/응답 데이터 직렬화
  • HTTP 처리를 위한 미들웨어 구축
  • 크로스 플랫폼 앱에서 HTTP 프로토콜 로직 구현
  • 서버 측 Dart 코드에서 원시 HTTP 스트림 처리

주요 기능

  • 크로스 플랫폼 호환성
  • 효율적인 헤더 파싱 및 시리얼라이제이션
  • 가볍고 종속성 없음
  • 요청 및 응답 구문 분석을 모두 지원합니다
  • 잘못된 HTTP 데이터에 대한 강력한 오류 처리

적합한 대상

  • 사용자 지정 HTTP 클라이언트를 구축하는 개발자
  • 다양한 플랫폼 간에 일관된 HTTP 구문 분석이 필요한 팀
  • 저수준 HTTP 프로토콜 제어가 필요한 프로젝트
  • 실시간 또는 스트리밍 HTTP가 필요한 Dart 애플리케이션
  • HTTP 메시지 처리를 위한 Dart 사용 백엔드 서비스

고려 사항

  • 완전한 HTTP 클라이언트 기능을 위한 것이 아님
  • 수동으로 HTTP 연결을 처리해야 합니다
  • http_client 와 같은 전송 계층과 함께 사용하는 것이 가장 좋습니다
  • HTTP 형식 파싱에 제한됨, 완전한 HTTP 스택 아님
  • 보안 핵심 애플리케이션에는 추가 검증이 필요할 수 있습니다

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

소스 저장소

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

순위