Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-server
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-server
Commits
40f3084c
Commit
40f3084c
authored
6 years ago
by
Anatolii Kurotych
Browse files
Options
Downloads
Patches
Plain Diff
[+] print_dap_http_headers
parent
64e71d4c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
http_server/http_client/dap_http_header.c
+9
-0
9 additions, 0 deletions
http_server/http_client/dap_http_header.c
http_server/http_client/dap_http_header.h
+3
-0
3 additions, 0 deletions
http_server/http_client/dap_http_header.h
with
12 additions
and
0 deletions
http_server/http_client/dap_http_header.c
+
9
−
0
View file @
40f3084c
...
...
@@ -177,6 +177,15 @@ void dap_http_header_remove(dap_http_header_t ** top, dap_http_header_t * hdr )
free
(
hdr
->
value
);
}
void
print_dap_http_headers
(
dap_http_header_t
*
top
)
{
dap_http_header_t
*
ret
;
log_it
(
L_DEBUG
,
"Print HTTP headers"
);
for
(
ret
=
top
;
ret
;
ret
=
ret
->
next
)
{
log_it
(
L_DEBUG
,
"%s: %s"
,
ret
->
name
,
ret
->
value
);
}
}
/**
* @brief dap_http_header_find Looks or the header with specified name
* @param top Top of the list
...
...
This diff is collapsed.
Click to expand it.
http_server/http_client/dap_http_header.h
+
3
−
0
View file @
40f3084c
...
...
@@ -46,4 +46,7 @@ extern dap_http_header_t * dap_http_header_find(dap_http_header_t * top, const c
extern
void
dap_http_header_remove
(
dap_http_header_t
**
top
,
dap_http_header_t
*
hdr
);
// For debug output
extern
void
print_dap_http_headers
(
dap_http_header_t
*
top
);
#endif
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