Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for get_legacy_data (0.28 seconds)

  1. docs_src/response_directly/tutorial002_py310.py

    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    @app.get("/legacy/")
    def get_legacy_data():
        data = """<?xml version="1.0"?>
        <shampoo>
        <Header>
            Apply shampoo here.
        </Header>
        <Body>
            You'll have to use soap here.
        </Body>
        </shampoo>
        """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 354 bytes
    - Click Count (0)
Back to Top