Skip to content

Add support for HTTP QUERY method#1438

Open
mikekistler wants to merge 1 commit into
Huachao:masterfrom
mikekistler:feature/http-query-method
Open

Add support for HTTP QUERY method#1438
mikekistler wants to merge 1 commit into
Huachao:masterfrom
mikekistler:feature/http-query-method

Conversation

@mikekistler

Copy link
Copy Markdown

This PR adds support for the HTTP QUERY method as defined in draft-ietf-httpbis-safe-method-w-body.

The QUERY method is a safe, idempotent method that allows sending a request body, similar to GET but with the ability to include complex query parameters in the body. This is useful when query parameters are too complex or long to fit in the URL.

Changes

  • HTTP Request Parser: Added QUERY to the list of recognized HTTP methods
  • Curl Request Parser: Added QUERY support for curl command parsing
  • Syntax Highlighting: Added QUERY method to syntax highlighting rules
  • Auto-completion: Added QUERY to method auto-completion
  • Snippets: Added a code snippet for QUERY requests
  • Documentation: Added a section in README.md explaining QUERY method usage
  • Examples: Added query-method-examples.http with example QUERY requests
  • Changelog: Added entry for the new feature

Usage

QUERY https://api.example.com/search HTTP/1.1
Content-Type: application/json

{
    "filters": {
        "status": "active",
        "category": "electronics"
    },
    "pagination": {
        "page": 1,
        "limit": 10
    }
}

Fixes #1304
Fixes #1392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support QUERY method Add support for QUERY HTTP method

1 participant