Skip to content

SSE: Make HTTP Method configurable #983

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

Closed
jeevatkm opened this issue Mar 11, 2025 · 2 comments
Closed

SSE: Make HTTP Method configurable #983

jeevatkm opened this issue Mar 11, 2025 · 2 comments
Assignees
Labels
feature v3 For resty v3

Comments

@jeevatkm
Copy link
Member

Discussed in #979

Originally posted by iyaozhen March 6, 2025

func (es *EventSource) createRequest() (*http.Request, error) {
	req, err := http.NewRequest(MethodGet, es.url, nil)
	if err != nil {
		return nil, err
	}

Normally, the SSE protocol only supports GET. But some server require POST json.

@jeevatkm jeevatkm added feature v3 For resty v3 labels Mar 11, 2025
@jeevatkm jeevatkm added this to the v3.0.0 Milestone milestone Mar 11, 2025
@jeevatkm jeevatkm self-assigned this Mar 11, 2025
@jeevatkm jeevatkm changed the title resty v3 sse client only support GET ? SSE: Make HTTP Method configurable Mar 11, 2025
@jeevatkm
Copy link
Member Author

Implemented by PR #988

@akkuman
Copy link

akkuman commented Apr 22, 2025

it should be tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature v3 For resty v3
Development

No branches or pull requests

2 participants