Forum > Networking and Web Programming

API calls, I extended the httpclient object

(1/2) > >>

joostfra:
For making API calls i used the httpclient opject.
Soon i missed a lot of call types.
So, i copied the fphttpclient, named it the jahttpclient and created the missing methods.
Now i can make the calls i want.
But maybe someone else has the same problem, therefore i attached the unit to this post.
If someone tries/uses it, just let us know if it works for you too,

Or perhaps i was looking totally in the wrong direction.... and can someone correct me.

rvk:

--- Quote from: joostfra on March 13, 2024, 08:38:44 pm ---Soon i missed a lot of call types.
...
Or perhaps i was looking totally in the wrong direction.... and can someone correct me.

--- End quote ---
Maybe you can explain and sum up the things you missed.

(That might be easier for us than puzzling on your changed code.)

joostfra:
You are right, i will give a summary.

I missed the Patch and SimplePatch methods, these i created in the same way as the existing.
Next to the FileFormPost and StreamFormPost i created the FilePost and the StreamPost (the original modifies the file content, the new does not)
The same way i created a FilePut and StreamPut and the FilePatch and StreamPatch for the same reason.

I did not change the existing code, only added methods in the public area.
And of course the implementation of the methods.

Thaddy:
Yes a patch.
Ask Michael for a review.

joostfra:
Should i ask Michael for a review ?

@Michael: i added a couple of useful methods.
Maybe this is useful for more people.
A small summary is in this topic.

While i am new to this forum, just correct me if i am wrong.

Navigation

[0] Message Index

[#] Next page

Go to full version