Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
a23ddb09
Commit
a23ddb09
authored
2 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Configure Content-Type for HTTP load generator
Co-authored-by:
Tobias Pfandzelter
<
tp@mcc.tu-berlin.de
>
parent
fa1ff8f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7676
passed
2 years ago
Stage: build
Stage: test
Stage: check
Stage: deploy
Stage: smoketest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-benchmarks/load-generator-commons/src/main/java/rocks/theodolite/benchmarks/loadgenerator/HttpRecordSender.java
+2
-1
2 additions, 1 deletion
...theodolite/benchmarks/loadgenerator/HttpRecordSender.java
with
2 additions
and
1 deletion
theodolite-benchmarks/load-generator-commons/src/main/java/rocks/theodolite/benchmarks/loadgenerator/HttpRecordSender.java
+
2
−
1
View file @
a23ddb09
...
...
@@ -84,8 +84,9 @@ public class HttpRecordSender<T extends SpecificRecord> implements RecordSender<
final
String
json
=
this
.
gson
.
toJson
(
message
);
final
HttpRequest
request
=
HttpRequest
.
newBuilder
()
.
uri
(
this
.
uri
)
.
timeout
(
this
.
connectionTimeout
)
.
POST
(
HttpRequest
.
BodyPublishers
.
ofString
(
json
))
.
header
(
"Content-Type"
,
"application/json"
)
.
timeout
(
this
.
connectionTimeout
)
.
build
();
final
BodyHandler
<
Void
>
bodyHandler
=
BodyHandlers
.
discarding
();
// final BodyHandler<String> bodyHandler = BodyHandlers.ofString();
...
...
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