Commits

Anonymous committed a50b6ca

just a little rearranging

Comments (0)

Files changed (1)

WebmachineReqData.wiki

 |=Function|=Description
 | {{{ method(rd()) -> 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'TRACE' }}} | The HTTP method used by the client.  (note that it is an {{{ atom() }}}) |
 | {{{ version(rd()) -> {integer(),integer()} }}} | The HTTP version used by the client.  Most often {{{ {1,1} }}}.  |
-| {{{ app_root(rd()) -> string() }}} | Indicates the "height" above the requested URI that this resource is dispatched from.  Typical values are {{{ "." }}}, {{{ ".." }}}, {{{ "../.." }}} and so on. |
-| {{{ disp_path(rd()) -> string() }}} | The "local" path of the resource URI; the part after any prefix used in DispatchConfiguration.  Of the three path accessors, this is the one you usually want.  This is also the one that will change after {{{create_path}}} is called in your [[WebmachineResources|resource]]. |
+| {{{ disp_path(rd()) -> string() }}} | The "local" path of the resource URI; the part after any prefix used in [[DispatchConfiguration]].  Of the three path accessors, this is the one you usually want.  This is also the one that will change after {{{create_path}}} is called in your [[WebmachineResources|resource]]. |
 | {{{ path(rd()) -> string() }}} | The path part of the URI -- after the host and port, but not including any query string. |
 | {{{ raw_path(rd()) -> string() }}} | The entire path part of the URI, including any query string present. |
-| {{{ path_info(atom(),rd()) -> 'undefined' | string() }}} | Looks up a binding as described in DispatchConfiguration. |
-| {{{ path_info(rd()) -> any() }}} | The dictionary of bindings as described in DispatchConfiguration. |
+| {{{ path_info(atom(),rd()) -> 'undefined' | string() }}} | Looks up a binding as described in [[DispatchConfiguration]]. |
+| {{{ path_info(rd()) -> any() }}} | The dictionary of bindings as described in [[DispatchConfiguration]]. |
 | {{{ path_tokens(rd()) -> list() }}} | This is a list of {{{ string() }}} terms, the disp_path components split by "/". |
 | {{{ get_req_header(string(),rd()) -> 'undefined' | string() }}} | Look up the value of an incoming request header. |
 | {{{ req_headers(rd()) -> mochiheaders() }}} | The incoming HTTP headers.  Generally, get_req_header is more useful. |
 | {{{ resp_redirect(rd()) -> bool() }}} | the last value passed to do_redirect, false otherwise -- if true, then some responses will be 303 instead of 2xx where applicable |
 | {{{ resp_headers(rd()) -> mochiheaders() }}} | The outgoing HTTP headers.  Generally, get_resp_header is more useful. |
 | {{{ resp_body(rd()) -> 'undefined' | binary() }}} | The outgoing response body, if one has been set.  Usually, append_to_response_body is the best way to set this. |
+| {{{ app_root(rd()) -> string() }}} | Indicates the "height" above the requested URI that this resource is dispatched from.  Typical values are {{{ "." }}}, {{{ ".." }}}, {{{ "../.." }}} and so on. |
 
 The functions for modification of {{{ rd() }}} are: