upipe-modules/upipe_http_source.h header reference
Upipe source module for http GET requests More
Header inclusion
Members
Types
Functions
- const char * upipe_http_src_command_str(int cmd)
- struct upipe_mgr * upipe_http_src_mgr_alloc(void )
- int upipe_http_src_mgr_get_proxy(struct upipe_mgr *mgr, const char **proxy_p)
- int upipe_http_src_mgr_iterate_cookie(struct upipe_mgr *mgr, const char *domain, const char *path, struct uchain **uchain_p)
- int upipe_http_src_mgr_set_cookie(struct upipe_mgr *mgr, const char *string)
- int upipe_http_src_mgr_set_proxy(struct upipe_mgr *mgr, const char *proxy)
- int upipe_http_src_set_proxy(struct upipe *upipe, const char *proxy)
- int upipe_http_src_throw_error(struct upipe *upipe, unsigned int code)
- int upipe_http_src_throw_redirect(struct upipe *upipe, const char *uri)
- const char * uprobe_http_src_event_str(int event)
Description
Upipe source module for http GET requests
Members detail
This macro is declared in upipe-modules/upipe_http_source.h source file, line 38.
This macro is declared in upipe-modules/upipe_http_source.h source file, line 31.
This enum is declared in upipe-modules/upipe_http_source.h source file, line 96.
This enum extends upipe_command with specific commands for http source.
Identifier | Value | Description |
---|---|---|
UPIPE_HTTP_SRC_SENTINEL | UPIPE_CONTROL_LOCAL | |
UPIPE_HTTP_SRC_SET_PROXY | unknown | set the http proxy to use (const char *) |
This function is declared in upipe-modules/upipe_http_source.h source file, line 109.
This function converts an enum upipe_http_src_command to a string.
Parameter list:
- cmd: the enum to convert
The return value is a string
This function is declared in upipe-modules/upipe_http_source.h source file, line 205.
This function returns the management structure for all http sources.
The return value is pointer to manager
This enum is declared in upipe-modules/upipe_http_source.h source file, line 131.
This enum extends upipe_mgr_command with specific commands for http source.
Identifier | Value | Description |
---|---|---|
UPIPE_HTTP_SRC_MGR_SENTINEL | UPIPE_MGR_CONTROL_LOCAL | |
UPIPE_HTTP_SRC_MGR_GET_PROXY | unknown | get the proxy url (const char **) |
UPIPE_HTTP_SRC_MGR_SET_PROXY | unknown | set the proxy url (const char *) |
UPIPE_HTTP_SRC_MGR_SET_COOKIE | unknown | add a cookie (const char *) |
UPIPE_HTTP_SRC_MGR_ITERATE_COOKIE | unknown | iterate over cookies |
This function is declared in upipe-modules/upipe_http_source.h source file, line 166.
This function gets the proxy url to use by default for the new allocated pipes.
Parameter list:
- mgr: pointer to upipe manager
- proxy_p: a pointer the proxy url
The return value is an error code
int upipe_http_src_mgr_iterate_cookie(struct upipe_mgr *mgr, const char *domain, const char *path, struct uchain **uchain_p)
This function is declared in upipe-modules/upipe_http_source.h source file, line 196.
This function iterates over the manager cookie list.
Parameter list:
- mgr: pointer to upipe manager
- domain: the domain to match
- path: the path to match
- uchain_p: iterator
The return value is an error code
This function is declared in upipe-modules/upipe_http_source.h source file, line 179.
This function adds a cookie in the manager cookie list.
Parameter list:
- mgr: pointer to upipe manager
- string: the cookie string to add
The return value is an error code
This function is declared in upipe-modules/upipe_http_source.h source file, line 153.
This function sets the proxy url to use by default for the new allocated pipes.
Parameter list:
- mgr: pointer to upipe manager
- proxy: the proxy url
The return value is an error code
This function is declared in upipe-modules/upipe_http_source.h source file, line 125.
This function sets the http proxy to use.
Parameter list:
- upipe: description structure of the pipe
- proxy: the proxy url
The return value is an error code
This function is declared in upipe-modules/upipe_http_source.h source file, line 89.
This function throw an error code event.
Parameter list:
- upipe: description structure of the pipe
- code: HTTP error code
The return value is an error code
This function is declared in upipe-modules/upipe_http_source.h source file, line 76.
This function throw a redirect event.
Parameter list:
- upipe: description structure of the pipe
- uri: the temporary uri
The return value is an error code
This enum is declared in upipe-modules/upipe_http_source.h source file, line 42.
This enum extends uprobe_event with specific events for http source.
Identifier | Value | Description |
---|---|---|
UPROBE_HTTP_SRC_SENTINEL | UPROBE_LOCAL | |
UPROBE_HTTP_SRC_REDIRECT | unknown | request receive a redirect (302) response with the url (const char *) |
UPROBE_HTTP_SRC_ERROR | unknown | request receive an error code response with the error code (unsigned int) |
This function is declared in upipe-modules/upipe_http_source.h source file, line 59.
This function converts an enum uprobe_http_src_event to a string.
Parameter list:
- event: the enum to convert
The return value is a string