[#HTTPRemoteClient-TryReadRequest]
= xref:HTTPRemoteClient.adoc[HTTPRemoteClient]::TryReadRequest
:relfileprefix: ../
:mrdocs:

Try to read an HTTPRequest from a client&apos;s receive buffer&period; Only complete requests are returned, incomplete requests are left in the buffer to wait for more data&period; Some read errors will mark this client for disconnection&period;

== Synopsis

Declared in `&lt;httpserver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::unique&lowbar;ptr&lt;HTTPRequest&gt;
TryReadRequest(std::shared&lowbar;ptr&lt;HTTPRemoteClient&gt; const& client);
----

== Return Value

The parsed request, or nullptr if no complete request is available yet&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *client*
| The client whose receive buffer is read from&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
