Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aabssmc committed Mar 11, 2024
1 parent e8fc5f8 commit d745129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class EffSendHttpRequest extends Effect {

static {
Skript.registerEffect(EffSendHttpRequest.class,
"send [[:a]sync] [http] request using [client] %httpclient% and [request] %httprequest% " +
"(send|post) [[:a]sync] [http] request using [client] %httpclient% and [request] %httprequest% " +
"(and|then) store (the response|it) in %object%"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public class SecRequestBuilder extends Section {
ENTRY_VALIDATOR.addEntryData(new ExpressionEntryData<>("body", null, true, String.class));
ENTRY_VALIDATOR.addEntryData(new ExpressionEntryData<>("headers", null, true, String[].class));
ENTRY_VALIDATOR.addEntryData(new ExpressionEntryData<>("variable", null, false, Object.class));
// (create|make) [a] [new] http request using [url] %string% and [with] [method] %string% [and [with] [header[s]] %-strings%] [and [body] %-string%] (then|and) store it in %object%
// (create|make) [a] [new] http request using [url] %string% and [with] [method] %string% [and [body] %-string%] [and [with] [header[s]] %-strings%] (then|and) store it in %object%
}

@Override
Expand Down

0 comments on commit d745129

Please sign in to comment.