Skip to main content

4 docs tagged with "http"

View all tags

API Routing and HTTP Verbs for RESTful Endpoints

Following our first API with FastAPI in Creating Your First Web API with FastAPI, this article explores API Routing and HTTP Verbs for RESTful Endpoints. We'll learn how to structure our API with different routes and how to use the correct HTTP methods for each action.

Basic Web Concepts: HTTP, URLs, and the Request/Response Cycle

Welcome to a new chapter in your Python journey! We're moving from writing command-line scripts and applications to the exciting world of web development. Before we can build web applications with Python frameworks like Flask or Django, we must first understand the fundamental concepts that power the entire internet.

Handling HTTP Methods: GET, POST

Following our exploration of Templates in Flask (Part 2) GET, POST. This concept is essential for creating interactive web applications that can receive and process user data.

Working with Async HTTP Requests: `aiohttp`

The most common use case for asyncio is to handle I/O-bound tasks, and the most common I/O task in modern software is making network requests. However, the popular requests library is synchronous. If you use it in an async function, it will block the entire event loop, defeating the purpose of asyncio.