-
Notifications
You must be signed in to change notification settings - Fork 0
Http Helper Functions #52
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...data_type/object/http_request_object.json → ...s/http/data_type/object/http_request.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "variant": 3, | ||
| "identifier": "HTTP_REQUEST_OBJECT", | ||
| "identifier": "HTTP_REQUEST", | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
...ata_type/object/http_response_object.json → .../http/data_type/object/http_response.json
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,210 @@ | ||
| { | ||
| "variant": 2, | ||
| "identifier": "HTTP_STATUS_CODE", | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "HTTP Status Code" | ||
| } | ||
| ], | ||
| "rules": [ | ||
| { | ||
| "config": { | ||
| "ItemOfCollection": { | ||
| "items": [ | ||
| { | ||
| "kind": { "StringValue": "100 Continue" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "101 Switching Protocols" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "102 Processing" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "103 Early Hints" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "200 OK" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "201 Created" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "202 Accepted" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "203 Non-Authoritative Information" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "204 No Content" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "205 Reset Content" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "206 Partial Content" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "207 Multi-Status" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "208 Already Reported" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "226 IM Used" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "300 Multiple Choices" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "301 Moved Permanently" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "302 Found" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "303 See Other" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "304 Not Modified" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "305 Use Proxy" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "306 Switch Proxy" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "307 Temporary Redirect" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "308 Permanent Redirect" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "400 Bad Request" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "401 Unauthorized" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "402 Payment Required" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "403 Forbidden" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "404 Not Found" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "405 Method Not Allowed" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "406 Not Acceptable" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "407 Proxy Authentication Required" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "408 Request Timeout" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "409 Conflict" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "410 Gone" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "411 Length Required" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "412 Precondition Failed" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "413 Payload Too Large" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "414 URI Too Long" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "415 Unsupported Media Type" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "416 Range Not Satisfiable" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "417 Expectation Failed" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "418 I'm a teapot" } | ||
|
raphael-goetz marked this conversation as resolved.
Outdated
|
||
| }, | ||
| { | ||
| "kind": { "StringValue": "421 Misdirected Request" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "422 Unprocessable Entity" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "423 Locked" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "424 Failed Dependency" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "425 Too Early" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "426 Upgrade Required" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "428 Precondition Required" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "429 Too Many Requests" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "431 Request Header Fields Too Large" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "451 Unavailable For Legal Reasons" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "500 Internal Server Error" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "501 Not Implemented" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "502 Bad Gateway" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "503 Service Unavailable" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "504 Gateway Timeout" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "505 HTTP Version Not Supported" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "506 Variant Also Negotiates" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "507 Insufficient Storage" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "508 Loop Detected" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "510 Not Extended" } | ||
| }, | ||
| { | ||
| "kind": { "StringValue": "511 Network Authentication Required" } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "generic_keys": [] | ||
| } | ||
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
definitions/rest/flow_type/rest.json → definitions/http/flow_type/http.json
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
141 changes: 141 additions & 0 deletions
141
definitions/http/runtime_definition/request/http_request_create.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,141 @@ | ||
| { | ||
| "runtime_name": "http::request::create", | ||
| "runtime_parameter_definitions": [ | ||
| { | ||
| "data_type_identifier": { | ||
| "type": { | ||
| "DataTypeIdentifier": "HTTP_METHOD" | ||
| } | ||
| }, | ||
| "runtime_name": "http_method", | ||
| "default_value": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "HTTP Method" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Defines the HTTP method to be used, such as GET, POST, PUT, or DELETE." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Specifies the request method that determines the type of HTTP operation to perform." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "data_type_identifier": { | ||
| "type": { | ||
| "DataTypeIdentifier": "HTTP_HEADER_MAP" | ||
| } | ||
| }, | ||
| "runtime_name": "headers", | ||
| "default_value": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "HTTP Headers" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "A collection of key-value pairs containing additional request metadata." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Optional headers that can define content type, authorization, cookies, caching policies, and more." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "data_type_identifier": { | ||
| "type": { | ||
| "DataTypeIdentifier": "HTTP_URL" | ||
| } | ||
| }, | ||
| "runtime_name": "url", | ||
| "default_value": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Request URL" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "The target URL to which the HTTP request will be sent." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Specifies the endpoint address, including protocol, host, path, and query parameters, where the request is directed." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "data_type_identifier": { | ||
| "type": { | ||
| "GenericKey": "P" | ||
| } | ||
| }, | ||
| "runtime_name": "payload", | ||
| "default_value": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Request Body" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "The data to include in the body of the request, typically used with methods like POST or PUT." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Contains the request payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header." | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "return_type_identifier": { | ||
| "type": { | ||
| "DataTypeIdentifier": "HTTP_REQUEST" | ||
| } | ||
| }, | ||
| "throws_error": false, | ||
| "generic_keys": [ | ||
| "P" | ||
| ], | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Construct HTTP Request" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Constructs an HTTP request object using the specified method, headers, URL, and payload." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Generates an HTTP request object that can be sent to a server. The request includes an HTTP method, optional headers, a destination URL, and an optional request body." | ||
| } | ||
| ], | ||
| "deprecation_message": [] | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.