Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
也许我遗漏了一些明显的东西,但文档并没有向我透露任何东西。
解决方案或解决方法将非常有帮助。
使用方法set_req_header : string -> string -> unit:
set_req_header : string -> string -> unit
let req = new Http_client.get (Neturl.string_of_url some_url) in req#set_req_header "User-Agent" "Your user agent";
而不是提出你的要求。