Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Proposal for Http Plugin.#1311

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
st0le wants to merge1 commit intoFlow-Launcher:dev
base:dev
Choose a base branch
Loading
fromst0le:st0le/http-plugin

Conversation

@st0le
Copy link

@st0lest0le commentedAug 6, 2022
edited
Loading

Adding a new type of JsonRPCPlugin that retrieves results from an API endpoint that can talk the same protocol.

Not completely done. Want to configure the Http methods, etc. but wondering if this will be accepted.

@taooceros
Copy link
Member

Would you please share a sample plugin? I couldn't see how exactly it will be.

protected override string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default)
{
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, url);
requestMessage.Content = new StringContent(rpcRequest.ToString(), Encoding.UTF8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I have trouble mostly with this part. It only directly use the rpcRequest as payload, which is mostly flow's style. Therefore, the use case can only be a customized http server.
I would like to see a http plugin not only provide the endpoints address, but also translate flow's query to the specific payload (a parser), and translate the response back to flow's standard response.

@jjw24jjw24 marked this pull request as draftAugust 11, 2022 21:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@taoocerostaoocerostaooceros left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@st0le@taooceros

[8]ページ先頭

©2009-2025 Movatter.jp