Skip to content

web: expose http_request_ ~result#58

Open
rr0gi wants to merge 1 commit intomasterfrom
redirect
Open

web: expose http_request_ ~result#58
rr0gi wants to merge 1 commit intomasterfrom
redirect

Conversation

@rr0gi
Copy link
Copy Markdown
Contributor

@rr0gi rr0gi commented Apr 21, 2026

no more breakage, just expose callback to get after-transfer info

Comment thread web.ml

let show_result ?(verbose=false) = function
| `Error code -> sprintf "(%d) %s" (Curl.errno code) (Curl.strerror code)
| `Ok (n, content) -> sprintf "http %d%s" n (if verbose then ": " ^ content else "")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be useful to have a show_simple_result counterpart

Copy link
Copy Markdown
Contributor Author

@rr0gi rr0gi Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now simple_result is just Ok string | Error string
would be nice to switch it to Result.t though

@rr0gi rr0gi changed the title web: return redirect web: expose http_request_ ~result Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants