---
title: mock_http_server
summary: Local test server helper for backend testing.
url: https://www.fastly.com/documentation/reference/compute/sdks/python/fastly_compute/testing/mock_http_server/
---

**Kind:** Module  
**Package:** fastly-compute 0.1.3  
**Path:** `fastly_compute::testing::mock_http_server`

Local test server helper for backend testing.

Provides a simple HTTP server that can act as a backend for viceroy testing.

## Classes

| Name | Summary |
| --- | --- |
| [MockHttpServer](https://www.fastly.com/documentation/reference/compute/sdks/python/fastly_compute/testing/mock_http_server/class.MockHttpServer/) | Local HTTP server for backend testing. |

## Functions

| Name | Summary |
| --- | --- |
| [make_test_request_handler](https://www.fastly.com/documentation/reference/compute/sdks/python/fastly_compute/testing/mock_http_server/fn.make_test_request_handler/) | Create a request handler class with configured responses. |
