Libertas OS API Documentation
    Preparing search index...

    Function Libertas_NetHttpAddRequest

    • Add a request to current HTTP session.

      Parameters

      • fd: number

        A socket handle, created with Libertas_NetNewHttp.

      • method: string

        Method string, such as "GET".

      • url: string

        The URL string.

      • headers: LibertasHttpHeader[]

        A list of custom HTTP headers.

      • Optionalbody: LibertasNetWriteData

        The body of HTTP request.

      • OptionalsendTimeout: number

        Timeout of send, in seconds.

      • OptionalrecvTimeout: number

        Timeout of receive, in seconds.

      Returns void