Skip to content

SSE: Make HTTP Method configurable #983

Closed
@jeevatkm

Description

@jeevatkm

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions