MCPcopy Index your code
hub / github.com/gotify/server / withFormData

Method withFormData

api/client_test.go:226–229  ·  view source on GitHub ↗
(formData string)

Source from the content-addressed store, hash-verified

224}
225
226func (s *ClientSuite) withFormData(formData string) {
227 s.ctx.Request = httptest.NewRequest("POST", "/token", strings.NewReader(formData))
228 s.ctx.Request.Header.Set("Content-Type", "application/x-www-form-urlencoded")
229}
230
231func withURL(ctx *gin.Context, scheme, host string) {
232 ctx.Set("location", &url.URL{Scheme: scheme, Host: host})

Calls

no outgoing calls

Tested by

no test coverage detected