Tor 0.4.9.0-alpha-dev
Data Fields
url_table_ent_t Struct Reference

Data Fields

const char * string
 
int is_prefix
 
int(* handler )(dir_connection_t *conn, const get_handler_args_t *args)
 

Detailed Description

Entry for handling an HTTP GET request.

This entry matches a request if "string" is equal to the requested resource, or if "is_prefix" is true and "string" is a prefix of the requested resource.

The 'handler' function is called to handle the request. It receives an arguments structure, and must return 0 on success or -1 if we should close the connection.

Definition at line 340 of file dircache.c.

Field Documentation

◆ handler

int(* handler) (dir_connection_t *conn, const get_handler_args_t *args)

Definition at line 343 of file dircache.c.

◆ is_prefix

int is_prefix

Definition at line 342 of file dircache.c.

◆ string

const char* string

Definition at line 341 of file dircache.c.


The documentation for this struct was generated from the following file: