There are multiple ways form data can be encoded. 'multipart' is
just one of them - there are also 'application/x-www-form-urlencoded'
(which will be added in next commit) and 'text/plain' encodings.
Let each encoding have it's own form_xxxx file and tests.
Adds transport for application/x-www-form-urlencoded content type.
This commit adds transport that handles form POST with content
type set to 'application/x-www-form-urlencoded'.
Form body can be json, urlencoded parameters or plain text.
Example:
curl -X POST 'http://server/query' -d '{name}' -H "Content-Type: application/x-www-form-urlencoded"
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebase will rebase this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [github.com/99designs/gqlgen](https://github.com/99designs/gqlgen) from 0.17.28 to 0.17.29.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/99designs/gqlgen/releases">github.com/99designs/gqlgen's releases</a>.</em></p>
<blockquote>
<h2>v0.17.29</h2>
<h2>What's Changed</h2>
<ul>
<li>Cleanup only non-gqlgen packages when reloading all packages by <a href="https://github.com/AdallomRoy"><code>@AdallomRoy</code></a> in <a href="https://github.com/99designs/gqlgen/pull/2598">99designs/gqlgen#2598</a></li>
<li>Transport for application/graphql contentType by <a href="https://github.com/RatkoR"><code>@RatkoR</code></a> in <a href="https://github.com/99designs/gqlgen/pull/2592">99designs/gqlgen#2592</a></li>
<li>Add on-close handler for websockets. by <a href="https://github.com/szgupta"><code>@szgupta</code></a> in <a href="https://github.com/99designs/gqlgen/pull/2612">99designs/gqlgen#2612</a></li>
<li>Transport for application/x-www-form-urlencoded content type by <a href="https://github.com/RatkoR"><code>@RatkoR</code></a> in <a href="https://github.com/99designs/gqlgen/pull/2611">99designs/gqlgen#2611</a></li>
<li>Read gqlgen.yml from io.Reader. by <a href="https://github.com/smac89"><code>@smac89</code></a> in <a href="https://github.com/99designs/gqlgen/pull/2607">99designs/gqlgen#2607</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/AdallomRoy"><code>@AdallomRoy</code></a> made their first contribution in <a href="https://github.com/99designs/gqlgen/pull/2598">99designs/gqlgen#2598</a></li>
<li><a href="https://github.com/szgupta"><code>@szgupta</code></a> made their first contribution in <a href="https://github.com/99designs/gqlgen/pull/2612">99designs/gqlgen#2612</a></li>
<li><a href="https://github.com/smac89"><code>@smac89</code></a> made their first contribution in <a href="https://github.com/99designs/gqlgen/pull/2607">99designs/gqlgen#2607</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/99designs/gqlgen/compare/v0.17.28...v0.17.29">https://github.com/99designs/gqlgen/compare/v0.17.28...v0.17.29</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/99designs/gqlgen/blob/master/CHANGELOG.md">github.com/99designs/gqlgen's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/99designs/gqlgen/compare/v0.17.28...v0.17.29">v0.17.29</a> - 2023-04-11</h2>
<ul>
<li><!-- raw HTML omitted --><!-- raw HTML omitted -->325405ba<!-- raw HTML omitted --><!-- raw HTML omitted --> release v0.17.29</li>
</ul>
<!-- raw HTML omitted -->
<ul>
<li>Update config.go</li>
</ul>
<p>Add ReadConfig</p>
<ul>
<li>
<p>Add tests</p>
</li>
<li>
<p>Update config_test.go</p>
</li>
</ul>
<p>remove extra space to fix lint checks</p>
<ul>
<li>Update config.go</li>
</ul>
<p>Need to return the config</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<ul>
<li>Renamed 'form' transport to 'form_multipart'.</li>
</ul>
<p>There are multiple ways form data can be encoded. 'multipart' is
just one of them - there are also 'application/x-www-form-urlencoded'
(which will be added in next commit) and 'text/plain' encodings.</p>
<p>Let each encoding have it's own form_xxxx file and tests.</p>
<ul>
<li>Adds transport for application/x-www-form-urlencoded content type.</li>
</ul>
<p>This commit adds transport that handles form POST with content
type set to 'application/x-www-form-urlencoded'.</p>
<p>Form body can be json, urlencoded parameters or plain text.</p>
<p>Example:</p>
<pre><code> curl -X POST 'http://server/query' -d '{name}' -H "Content-Type: application/x-www-form-urlencoded"
</code></pre>
<p>Enable it in your GQL server with:</p>
<pre><code>srv.AddTransport(transport.UrlEncodedForm{})
</code></pre>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/99designs/gqlgen/commit/325405ba3959d11886e64a7eca486c0714cb61ac"><code>325405b</code></a> release v0.17.29</li>
<li><a href="https://github.com/99designs/gqlgen/commit/7bc1f626a1dc738a524473dc7c587acc91a41c18"><code>7bc1f62</code></a> Read gqlgen.yml from io.Reader. (<a href="https://github.com/99designs/gqlgen/issues/2607">#2607</a>)</li>
<li><a href="https://github.com/99designs/gqlgen/commit/50c2829c367bc8cdc6dfc6e00688ad4de69238c5"><code>50c2829</code></a> Transport for application/x-www-form-urlencoded content type (<a href="https://github.com/99designs/gqlgen/issues/2611">#2611</a>)</li>
<li><a href="https://github.com/99designs/gqlgen/commit/8b38c0e9effae523d65d6d631349936c6977228f"><code>8b38c0e</code></a> Add on-close handler for websockets. (<a href="https://github.com/99designs/gqlgen/issues/2612">#2612</a>)</li>
<li><a href="https://github.com/99designs/gqlgen/commit/4548815789eee960ec6ce876ea02a8cb3b0953eb"><code>4548815</code></a> Transport for application/graphql contentType (<a href="https://github.com/99designs/gqlgen/issues/2592">#2592</a>)</li>
<li><a href="https://github.com/99designs/gqlgen/commit/21054ebab22290f6484d20a25370e10a39ae7531"><code>21054eb</code></a> Cleanup only non-gqlgen packages when reloading all packages (<a href="https://github.com/99designs/gqlgen/issues/2598">#2598</a>)</li>
<li><a href="https://github.com/99designs/gqlgen/commit/1c6bf9bd7426ab68c73e4955d0896833cad0e415"><code>1c6bf9b</code></a> v0.17.28 postrelease bump</li>
<li>See full diff in <a href="https://github.com/99designs/gqlgen/compare/v0.17.28...v0.17.29">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot rebase` will rebase this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
argoyle
(Migrated from gitlab.com)
merged commit into main2023-04-13 12:58:19 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps github.com/99designs/gqlgen from 0.17.28 to 0.17.29.
Release notes
Sourced from github.com/99designs/gqlgen's releases.
Changelog
Sourced from github.com/99designs/gqlgen's changelog.
... (truncated)
Commits
325405brelease v0.17.297bc1f62Read gqlgen.yml from io.Reader. (#2607)50c2829Transport for application/x-www-form-urlencoded content type (#2611)8b38c0eAdd on-close handler for websockets. (#2612)4548815Transport for application/graphql contentType (#2592)21054ebCleanup only non-gqlgen packages when reloading all packages (#2598)1c6bf9bv0.17.28 postrelease bumpDependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflicts