Skip to content

Commit dfc3c7a

Browse files
committed
move more pages
1 parent 5a85627 commit dfc3c7a

11 files changed

Lines changed: 26 additions & 46 deletions

File tree

books/reqwest/src/SUMMARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@
77
- [Download many URLs in parallel (async)](./download-many-urls-async.md)
88
- [Simple blocking HTTP GET request in Rust](./simple-blocking-http-get-request.md)
99
- [Simple blocking HTTP POST request using Rust](./simple-blocking-http-post-request.md)
10+
- [Set the User-Agent in a HTTP request using Rust reqwest](./reqwest-set-user-agent.md)
1011
- [HTTP reqwest sending cookie](./reqwest-send-cookie.md)
12+
- [Accept cookise in an HTTP request sent by the server](./reqwest-accept-cookies.md)
13+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

books/reqwest/src/index.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
# reqwest
2-
1+
# Reqwest the HTTP client library of Rust
32

43
Using the [reqwest](https://crates.io/crates/reqwest) crate.
54

5+
Reqwest is a Rust crate to handle HTTP requests.
6+
7+
* We use [httpbin](https://httpbin.org/) for checking examples.
8+
9+
10+
* [Simple blocking HTTP GET request in Rust](./simple-blocking-http-get-request.md) - `GET`.
11+
* [Simple blocking HTTP POST request using Rust ](./simple-blocking-http-post-request.md) - `POST`, `Client`.
12+
* [Set the User-Agent in a HTTP request using Rust reqwest](./reqwest-set-user-agent.md) - `header`.
13+
* [HTTP reqwest sending cookie](./reqwest-send-cookie.md) - `header`, `Cookie`.
14+

pages/reqwest-accept-cookies.md renamed to books/reqwest/src/reqwest-accept-cookies.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
---
2-
title: Accept cookise in an HTTP request sent by the server
3-
timestamp: 2024-01-03T14:30:01
4-
author: szabgab
5-
published: false
6-
description:
7-
tags:
8-
- Rust
9-
todo:
10-
- TODO
11-
---
1+
# DRAFT: Accept cookise in an HTTP request sent by the server
2+
3+
This is a DARFT!
124

135
```
146
curl -i "http://httpbin.org/cookies/set?name=Foo+Bar"
@@ -34,11 +26,11 @@ Access-Control-Allow-Credentials: true
3426

3527
## Dependencies
3628

37-
{% include file="examples/reqwest-accept-cookies/Cargo.toml" %}
29+
{% embed include file="src/examples/reqwest-accept-cookies/Cargo.toml" %}
3830

3931
## The code
4032

41-
{% include file="examples/reqwest-accept-cookies/src/main.rs" %}
33+
{% embed include file="src/examples/reqwest-accept-cookies/src/main.rs" %}
4234

4335
## The output
4436

pages/reqwest-set-user-agent.md renamed to books/reqwest/src/reqwest-set-user-agent.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
---
2-
title: Set the User-Agent in a HTTP request using Rust reqwest
3-
timestamp: 2024-01-25T13:40:01
4-
author: szabgab
5-
published: true
6-
description:
7-
tags:
8-
- User Agent
9-
- reqwest
10-
- header
11-
---
1+
# Set the User-Agent in a HTTP request using Rust reqwest
2+
3+
- User Agent
4+
- reqwest
5+
- header
126

137

148
## Dependencies
159

16-
{% include file="examples/reqwest-set-user-agent/Cargo.toml" %}
10+
{% embed include file="src/examples/reqwest-set-user-agent/Cargo.toml" %}
1711

1812
## The code
1913

20-
{% include file="examples/reqwest-set-user-agent/src/main.rs" %}
14+
{% embed include file="src/examples/reqwest-set-user-agent/src/main.rs" %}
2115

2216
## The output
2317

0 commit comments

Comments
 (0)