/* * TinyBlocks - tb_http.h * Library tinyblocks-http: cliente HTTP/1.1 sobre a interface TbStream. * Registra a categoria "HTTP". * * http:// usa a conexao TCP da tinyblocks-socket; https:// embrulha essa * conexao em TLS pela tinyblocks-ssl (se ela estiver carregada). As duas sao * achadas pelo runtime (tabelas no lib_userdata): esta library so conhece a * interface TbStream. Segue redirecionamentos (ate 8, inclusive de http * para https), entende Content-Length e "chunked". * * Baixar e ASSINCRONO: "baixe (url) para (arquivo)" comeca numa thread e * volta na hora; o programa espera com * repita ate que * O arquivo so ganha o nome final quando chega inteiro (antes: * .parte). "conteudo de (url)" busca um texto de uma vez. */ #ifndef TINYBLOCKS_HTTP_H #define TINYBLOCKS_HTTP_H #include TB_API const TinyBlocks_LibraryDescriptor* tb_http_get_library(void); #endif /* TINYBLOCKS_HTTP_H */