Home / Function/ createFormPostRequest() — gin Function Reference

createFormPostRequest() — gin Function Reference

Architecture documentation for the createFormPostRequest() function in binding_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  a97f215d_74c4_087d_0d79_29c6388482cf["createFormPostRequest()"]
  9edd611b_825f_fea0_22ef_6dec16bdeedf["TestBindingFormPost()"]
  9edd611b_825f_fea0_22ef_6dec16bdeedf -->|calls| a97f215d_74c4_087d_0d79_29c6388482cf
  style a97f215d_74c4_087d_0d79_29c6388482cf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 503–508

func createFormPostRequest(t *testing.T) *http.Request {
	req, err := http.NewRequest(http.MethodPost, "/?foo=getfoo&bar=getbar", bytes.NewBufferString("foo=bar&bar=foo"))
	require.NoError(t, err)
	req.Header.Set("Content-Type", MIMEPOSTForm)
	return req
}

Domain

Subdomains

Frequently Asked Questions

What does createFormPostRequest() do?
createFormPostRequest() is a function in the gin codebase.
What calls createFormPostRequest()?
createFormPostRequest() is called by 1 function(s): TestBindingFormPost.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free