Task: Implement a URL Base Session for Python Requests
Task: Implement a URL Base Session for Python Requests: a task in Terminal-Lego-15k (Harbor dataset). When using Python's requests.Session() , you need to provide the full URL for each request, which can become tedious when making multiple requests to the same server. Your task is to create a…
The task
When using Python's `requests.Session()`, you need to provide the full URL for each request, which can become tedious when making multiple requests to the same server. Your task is to create a custom Session class that supports a base URL, allowing you to specify only the relative path for subsequent requests.
Part of PrimeIntellect/Terminal-Lego-15k.