<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sputnik/examples, branch v0.3.4</title>
<subtitle>A lightweight layer on top of hyper to facilitate building web applications.</subtitle>
<id>http://git.push-f.com/sputnik/atom/examples?h=v0.3.4</id>
<link rel='self' href='http://git.push-f.com/sputnik/atom/examples?h=v0.3.4'/>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/'/>
<updated>2021-01-26T15:20:14Z</updated>
<entry>
<title>move SputnikParts::csrf_token to CsrfToken::from_request</title>
<updated>2021-01-26T15:20:14Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-26T15:17:01Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=cfb33b7f441e68161032b6505502b6490c4c0a3d'/>
<id>urn:sha1:cfb33b7f441e68161032b6505502b6490c4c0a3d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>introduce SputnikParts::response_headers</title>
<updated>2021-01-26T14:48:17Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-26T13:37:04Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=fc15b41a37e123434ec39a277f107b78c1507bd8'/>
<id>urn:sha1:fc15b41a37e123434ec39a277f107b78c1507bd8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>reintroduce CsrfToken type</title>
<updated>2021-01-25T21:50:40Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-25T21:38:06Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=3fd065757f02ebf1d055912e6809fac15c8bf058'/>
<id>urn:sha1:3fd065757f02ebf1d055912e6809fac15c8bf058</id>
<content type='text'>
Raw HTML is potentially dangerous so it's better to provide an
encapsulating type instead of relying on naked strings.

bump version to 0.3.3
</content>
</entry>
<entry>
<title>simplify CSRF API</title>
<updated>2021-01-25T14:06:48Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-25T13:47:47Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=9fa7442e41bc11ab3d62f43f5f6e90b59e160da2'/>
<id>urn:sha1:9fa7442e41bc11ab3d62f43f5f6e90b59e160da2</id>
<content type='text'>
This commit gets rid of the CsrfToken type,
simplifying submission handling:

  // before
  let csrf_token = req.csrf_token(&amp;mut response);
  let msg: FormData = body.into_form_csrf(&amp;csrf_token).await?;

  // after
  let msg: FormData = body.into_form_csrf(req).await?;

As well as HTML input retrieval:

  // before
  req.csrf_token(&amp;mut response).html_input();

  // after
  req.csrf_html_input(&amp;mut response);

This commit also merges the CsrfError type into CsrfProtectedFormError.

bump version to 0.3.1
</content>
</entry>
<entry>
<title>define &amp; impl traits instead of wrapping types</title>
<updated>2021-01-24T21:49:57Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-24T21:37:36Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=76e92d7281b45ce506046a8946b7fde3355c485d'/>
<id>urn:sha1:76e92d7281b45ce506046a8946b7fde3355c485d</id>
<content type='text'>
bump version to 0.3.0
</content>
</entry>
<entry>
<title>completely ditch Sputnik's general Error type</title>
<updated>2021-01-22T20:36:53Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-22T20:34:35Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=4ba2d050bdf1a3c0070f3aa2331c82745611af1f'/>
<id>urn:sha1:4ba2d050bdf1a3c0070f3aa2331c82745611af1f</id>
<content type='text'>
Users also want to short-circuit error types from other crates but they
cannot define a From conversion between two foreign types.

Sputnik's error type also didn't allow for proper error logging.

bump version to 0.2.3
</content>
</entry>
<entry>
<title>introduce Error::Simple and Error::Response</title>
<updated>2021-01-20T10:53:26Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-20T10:41:03Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=b886de1afc0b90d7ca27db9d5c7dabddbe3d7ee0'/>
<id>urn:sha1:b886de1afc0b90d7ca27db9d5c7dabddbe3d7ee0</id>
<content type='text'>
bump version to 0.2.2
</content>
</entry>
<entry>
<title>split Request wrapper into Parts &amp; Body</title>
<updated>2021-01-18T09:17:10Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-01-18T09:03:50Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/sputnik/commit/?id=9b2d39933f3403245f97247166818bef609a0125'/>
<id>urn:sha1:9b2d39933f3403245f97247166818bef609a0125</id>
<content type='text'>
Originally the into_ functions actually consumed the request but I
changed that to make request information like URI and method still
accessible after the request has been read.

Not consuming the Request however allows e.g. into_form() to be called
twice, which results in a panic since the body can only be read once.

This commit splits the Request wrapper into two wrappers Parts &amp; Body,
allowing the borrow checker to guarantee that the body is only consumed
once, while keeping the other request information accessible after the
body has been consumed.

Version bumped to 0.2.0.
</content>
</entry>
</feed>
