pike.git / lib / modules / Protocols.pmod / HTTP.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:69:   //! @decl Protocols.HTTP.Query get_url(string|Standards.URI url, @   //! mapping query_variables, @   //! mapping request_headers)   //! @decl Protocols.HTTP.Query get_url(string|Standards.URI url, @   //! mapping query_variables, @   //! mapping request_headers, @   //! Protocols.HTTP.Query query)   //! Sends a HTTP GET request to the server in the URL   //! and returns the created and initialized @[Query] object.   //! 0 is returned upon failure. If a query object having - //! @tt{request_headers->Connection=="Keep-Alive"@} from a previous + //! @expr{request_headers->Connection=="Keep-Alive"@} from a previous   //! request is provided and the already established server connection   //! can be used for the next request, you may gain some performance.   //!   object get_url(string|Standards.URI url,    void|mapping query_variables,    void|mapping request_headers,    void|Protocols.HTTP.Query con)   {    return do_method("GET", url, query_variables, request_headers, con);   }
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:95:   //! @decl Protocols.HTTP.Query put_url(string|Standards.URI url,string file, @   //! mapping query_variables, @   //! mapping request_headers)   //! @decl Protocols.HTTP.Query put_url(string|Standards.URI url,string file, @   //! mapping query_variables, @   //! mapping request_headers, @   //! Protocols.HTTP.Query query)   //! Sends a HTTP PUT request to the server in the URL   //! and returns the created and initialized @[Query] object.   //! 0 is returned upon failure. If a query object having - //! @tt{request_headers->Connection=="Keep-Alive"@} from a previous + //! @expr{request_headers->Connection=="Keep-Alive"@} from a previous   //! request is provided and the already established server connection   //! can be used for the next request, you may gain some performance.   //!   object put_url(string|Standards.URI url,    void|string file,    void|mapping query_variables,    void|mapping request_headers,    void|Protocols.HTTP.Query con)   {    return do_method("PUT", url, query_variables, request_headers, con, file);
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:121:   //! @decl Protocols.HTTP.Query delete_url(string|Standards.URI url, @   //! mapping query_variables, @   //! mapping request_headers)   //! @decl Protocols.HTTP.Query delete_url(string|Standards.URI url, @   //! mapping query_variables, @   //! mapping request_headers, @   //! Protocols.HTTP.Query query)   //! Sends a HTTP DELETE request to the server in the URL   //! and returns the created and initialized @[Query] object.   //! 0 is returned upon failure. If a query object having - //! @tt{request_headers->Connection=="Keep-Alive"@} from a previous + //! @expr{request_headers->Connection=="Keep-Alive"@} from a previous   //! request is provided and the already established server connection   //! can be used for the next request, you may gain some performance.   //!   object delete_url(string|Standards.URI url,    void|mapping query_variables,    void|mapping request_headers,    void|Protocols.HTTP.Query con)   {    return do_method("DELETE", url, query_variables, request_headers, con);   }
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:151:   //! Protocols.HTTP.Query query)   //! @decl string get_url_data(string|Standards.URI url, @   //! mapping query_variables)   //! @decl string get_url_data(string|Standards.URI url, @   //! mapping query_variables, @   //! mapping request_headers)   //! @decl string get_url_data(string|Standards.URI url, @   //! mapping query_variables, @   //! mapping request_headers, @   //! object(Protocols.HTTP.Query) query) - //! Returns an array of @tt{({content_type,data})@} and just the data - //! string respective, + //! Returns an array of @expr{({content_type,data})@} and just + //! the data string respective,   //! after calling the requested server for the information.   //! 0 is returned upon failure.   //!      array(string) get_url_nice(string|Standards.URI url,    void|mapping query_variables,    void|mapping request_headers,    void|Protocols.HTTP.Query con)   {    object c = get_url(url, query_variables, request_headers, con);
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:319:    })*"&";    return http_encode_string(v[0])+"="+    http_encode_string(v[1]);    })*"&";   }      //! This protects all odd - see @[http_encode_query()] -   //! characters for transfer in HTTP.   //!   //! Do not use this function to protect URLs, since - //! it will protect URL characters like @tt{'/'@} and @tt{'?'@}. + //! it will protect URL characters like @expr{'/'@} and @expr{'?'@}.   //! @param in   //! The string to encode   //! @returns   //! The HTTP encoded string   string http_encode_string(string in)   {    return replace(    in,    ({ "\000", "\001", "\002", "\003", "\004", "\005", "\006", "\007",    "\010", "\011", "\012", "\013", "\014", "\015", "\016", "\017",