Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Titan Test System Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CTI Tools
Titan Test System Framework
Commits
d2fa2859
Commit
d2fa2859
authored
10 months ago
by
Yann Garcia
Browse files
Options
Downloads
Patches
Plain Diff
Add new template for 201 Created HTTP response
parent
6959b8be
No related branches found
No related tags found
1 merge request
!2
Closing TTF T024/025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ttcn/LibHttp/ttcn/LibHttp_Templates.ttcn
+8
-1
8 additions, 1 deletion
ttcn/LibHttp/ttcn/LibHttp_Templates.ttcn
with
8 additions
and
1 deletion
ttcn/LibHttp/ttcn/LibHttp_Templates.ttcn
+
8
−
1
View file @
d2fa2859
...
...
@@ -223,12 +223,19 @@ module LibHttp_Templates {
statustext
:=
"Created"
}
// End of template mw_http_response_201_created
template
(
present
)
Response
mw_http_response_201_created_no_body
(
template
(
present
)
Headers
p_header
:=
?
)
modifies
mw_http_response_ok_no_body
:=
{
statuscode
:=
201
,
statustext
:=
"Created"
}
// End of template mw_http_response_201_created_no_status_text
template
(
present
)
Response
mw_http_response_201_created_no_status_text
(
template
(
present
)
HttpMessageBody
p_body
:=
?
,
template
(
present
)
Headers
p_header
:=
?
)
modifies
mw_http_response_ok
:=
{
statuscode
:=
201
,
statustext
:=
?
statustext
:=
"Created"
}
// End of template mw_http_response_201_created_no_status_text
template
(
present
)
Response
mw_http_response_202_accepted
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment