mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-21 18:05:30 -04:00
[PR #119] [MERGED] feat(http_parser): add functions to parse raw HTTP requests and conve… #159
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/119
Author: @Yeuoly
Created: 4/27/2025
Status: ✅ Merged
Merged: 4/27/2025
Merged by: @Yeuoly
Base:
main← Head:chore/add-tests-for-http-parser📝 Commits (2)
270f295feat(http_parser): add functions to parse raw HTTP requests and convert Request objects to raw data2cf8233apply ruff📊 Changes
2 files changed (+94 additions, -0 deletions)
View changed files
📝
python/dify_plugin/core/utils/http_parser.py(+40 -0)➕
python/tests/utils/test_http_parser.py(+54 -0)📄 Description
…rt Request objects to raw data
parse_raw_requestto convert raw HTTP data into a Request object, including support for headers and body.convert_request_to_raw_datato transform a Request object back into raw HTTP data.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.