struct http_request *http =
container_of ( async, struct http_request, async );
- free_uri ( http->uri );
free ( http );
}
* @v buffer Buffer into which to download file
* @v parent Parent asynchronous operation
* @ret rc Return status code
- *
- * If it returns success, this function takes ownership of the URI.
*/
int http_get ( struct uri *uri, struct buffer *buffer, struct async *parent ) {
struct http_request *http;