Try using slices

This commit is contained in:
Sky O 2024-03-29 14:13:15 +00:00
parent 1751ef3fd0
commit b84d51184a

View File

@ -13,10 +13,10 @@ def get_body_from_form_data(
return
def on_part_data(b,s,e):
print("YO PART DATA", b, s, e)
print("YO PART DATA", b[s:e])
return
def on_part_end(string: str):
def on_part_end():
print("YO PART ENDED")
return
@ -29,11 +29,11 @@ def get_body_from_form_data(
return
def on_header_field(b,s,e):
print("YO HEADER FIELD", b, s, e)
print("YO HEADER FIELD", b[s:e])
return
def on_header_value(b,s,e):
print("YO HEADER FIELD", b, s, e)
print("YO HEADER VALUE", b[s:e])
return
def on_headers_finished():