Draft
Conversation
27 tasks
Comments are preserved in order now: See also: mistweaverco/kulala-fmt#67 Multi-line URLs are also supported now.
Bun and Got don't support HTTP/2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GETrequestsFeatures
Breaking Changes
Form-data
For multi-part form-data, we are going to have breaking-change for better UX:
The shape of
avataris special (and "reserved"). It tells kulala-core to read the contents offilePathand send it asfilename.Payload
The general shape of the payload.
actionrequired:run|parseenvoptional: Default isdefault, any string - refers to the env in kuba and/orhttp-client.env.jsonfilepathoptional:stringpath to the.httpfile, relative to the cwd, or absolute (if the.httpfile contains external scripts,filepathis required for path resolving)contentrequiredstring: becausefilepathis optional, the client needs to send the full content that should be processed (usually the file contents, or in Vim/Neovim the buffer contents)limitoptionalKulalaPayloadLimit: limitparseorrunactions. If omitted, the whole content isparsed orrun.Payload: limit #
Payload: limit - cursorPosition #
{ "action":"run", "env": "staging", "filepath": "test/simple.http", "content": "FILE_CONTENT_OF_HTTP_FILE_HERE", "limit": [ { "filter": "cursorPosition", "line": 1, "column": 1 } ] }Payload: limit - name #
for selecting a named request
LOGIN_REQUEST:{ "action":"run", "filepath": "test/simple.http", "content": "FILE_CONTENT_OF_HTTP_FILE_HERE", "limit": [ { "filter": "name", "name": "LOGIN_REQUEST" } ] }Payload: limit - multiple #
For multiple limits (can also mix
filters){ "action":"run", "filepath": "test/simple.http", "content": "FILE_CONTENT_OF_HTTP_FILE_HERE", "limit": [ { "filter": "name", "name": "LOGIN_REQUEST" }, { "filter": "name", "name": "GRAPHQL_REQUEST" } ] }