-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for defining http requests in a .http file #1619
Open
AlessandroColi
wants to merge
19
commits into
httpie:master
Choose a base branch
from
Group-18-DD2480:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,229
−397
Conversation
This file contains 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
Co-authored-by: Jakub Rybak <[email protected]>
Co-authored-by: Jakub Rybak <[email protected]>
Co-authored-by: Jakub Rybak <[email protected]>
Co-authored-by: Jakub Rybak <[email protected]>
Co-authored-by: Jakub Rybak <[email protected]>
Add --http-file CLI argument and read file
also brings other function in the logic
…ble from outside the file
* Handle and skip empty request segments Co-authored-by: Jakub Rybak <[email protected]> * Fix splitting of requests Co-authored-by: Jakub Rybak <[email protected]> * Parse and pass request body Co-authored-by: Jakub Rybak <[email protected]> * Format files Co-authored-by: Jakub Rybak <[email protected]> * Format definition.py to follow code style Co-authored-by: Jakub Rybak <[email protected]> --------- Co-authored-by: Jakub Rybak <[email protected]>
* [feat] added unit tests for split_requests (#12) * [fix] fixed the structure of split_requests function (#12) * [fix] modified get_dependencies to return only unique dependencies (#9, #12) * [feat] added unit tests for get_dependencies (#12) * [feat][fix] fixed 2 cases with non-deterministic results and added test_log (REQ_007) (#12) * [fix] fixed possible errors and simplified regex for get_name method (#10) * [feat] added tests for get_name (REQ_003) (#12) * [feat] added tests for replace_global function (REQ_005) (#12) * [feat] added tests for extract_headers function (REQ_003) (#12) * [fix] fixed the structure of split_requests function (#12) * [refactor] unnested the inner function of http_parser (#12) * [feat] added tests for parse_single_request (REQ_002) (#12) * [fix] changes to files to enforce code style (#14) * [fix] additional fixes for code style enforcement * [fix] more fixes for code style enforcement (#14)
* [dev] adds the functionality of resolving dependencies (#17) * [dev] Modifies dependencies tests to be in line with new functionality (#12) * [dev] added requirements to run * [refactor] Make types usable for python version < 3.9 and refactor code to be in accordance with the style guide * [refactor] remove unused imports, updated style of http parser tests * [fix] replaced tuple by Tuple * [fix] incorrect return types used * [doc] document replace_dependencies
Extended implementation of the parser
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.
As asked by issue #758 we added basic support for defining requests in a .HTTP file by using the --http-file flag followed by the file name instead of the URL