FsHttp
FsHttp copied to clipboard
A lightweight F# HTTP library by @SchlenkR and @dawedawe
I am using the following code with Telegram: ```fsharp http { POST $"https://api.telegram.org/bot%s{apiTelegramKey}/sendPhoto" query [ "chat_id", telegramChatId "caption", caption "parse_mode", "MarkdownV2" ] multipart part (ContentData.ByteArrayContent weather) (Some "image/jpeg") "photo" ```...
Using "filePartWithName", and a server exception, leads to not disposing the file stream and locking the file.
I found this note: https://github.com/fsprojects/FsHttp/blob/1682f420c2676b6126b3e13a2be6cdf08b3ce27e/src/FsHttp/Response.fs#L25 Assuming this would be applied to requests as well.
We've been struggling with some cryptic responses when trying to parse the json body response from some api we're using. Turned out it was because the response was gzipped. After...
Either use `(string * string) list` or `(string * obj) list` for both `query` and `formUrlEncoded` functions. `(string * string) list` might be a better choice so value formatting must...
add ability to add multiple cookies in a single step, from a list of cookie strings