Loading ttcn/Http/LibItsHttp_Templates.ttcn +27 −1 Original line number Diff line number Diff line Loading @@ -102,6 +102,18 @@ module LibItsHttp_Templates { group http_responses { template (value) Response m_http_response_ok( in template (value) HttpMessageBody p_body, in template (value) HeaderLines p_header ) := { version_major := 1, version_minor := 1, statuscode := 200, statustext := "OK", header := p_header, body := p_body } // End of template m_http_response_ok template (present) Response mw_http_response_ok( template (present) HttpMessageBody p_body := ?, template (present) HeaderLines p_header := ? Loading @@ -114,6 +126,20 @@ module LibItsHttp_Templates { body := p_body } // End of template mw_http_response_ok template (value) Response m_http_response_ko( in template (value) HttpMessageBody p_body, in template (value) HeaderLines p_header, in template (value) integer p_statuscode := 404, in template (value) charstring p_statustext := "Not found" ) := { version_major := 1, version_minor := 1, statuscode := p_statuscode, statustext := p_statustext, header := p_header, body := p_body } // End of template m_http_response_ko template Response mw_http_response_ko( template HttpMessageBody p_body := *, template (present) HeaderLines p_header := ? Loading Loading
ttcn/Http/LibItsHttp_Templates.ttcn +27 −1 Original line number Diff line number Diff line Loading @@ -102,6 +102,18 @@ module LibItsHttp_Templates { group http_responses { template (value) Response m_http_response_ok( in template (value) HttpMessageBody p_body, in template (value) HeaderLines p_header ) := { version_major := 1, version_minor := 1, statuscode := 200, statustext := "OK", header := p_header, body := p_body } // End of template m_http_response_ok template (present) Response mw_http_response_ok( template (present) HttpMessageBody p_body := ?, template (present) HeaderLines p_header := ? Loading @@ -114,6 +126,20 @@ module LibItsHttp_Templates { body := p_body } // End of template mw_http_response_ok template (value) Response m_http_response_ko( in template (value) HttpMessageBody p_body, in template (value) HeaderLines p_header, in template (value) integer p_statuscode := 404, in template (value) charstring p_statustext := "Not found" ) := { version_major := 1, version_minor := 1, statuscode := p_statuscode, statustext := p_statustext, header := p_header, body := p_body } // End of template m_http_response_ko template Response mw_http_response_ko( template HttpMessageBody p_body := *, template (present) HeaderLines p_header := ? Loading