# 请求，响应，和中间件

我们已经讨论了一些关于Illuminate请求对象的内容。例如在第3章，你看到你可以在构造函数中获取实例或者用request()来检索实例，在第7章我们研究了如何使用它获取用户输入的信息。

在本章中，你将进一步了解请求对象是什么，它是如何生成的，它代表什么，以及它在应用程序生命周期中扮演什么角色。我们还将讨论响应对象和Laravel的中间件模式。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liseen315.gitbook.io/laravel/qing-qiu-xiang-ying-he-zhong-jian-jian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
