Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/azure/mgmt/dynatrace/_vendor.py: 25%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

1# -------------------------------------------------------------------------- 

2# Copyright (c) Microsoft Corporation. All rights reserved. 

3# Licensed under the MIT License. See License.txt in the project root for license information. 

4# Code generated by Microsoft (R) AutoRest Code Generator. 

5# Changes may cause incorrect behavior and will be lost if the code is regenerated. 

6# -------------------------------------------------------------------------- 

7 

8from azure.core.pipeline.transport import HttpRequest 

9 

10 

11def _convert_request(request, files=None): 

12 data = request.content if not files else None 

13 request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) 

14 if files: 

15 request.set_formdata_body(files) 

16 return request