-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added request headers and ability to define it during testing connect…
…ion using `AbstractHofundBasicHttpConnection`
- Loading branch information
pz2
committed
Jul 16, 2024
1 parent
8269ee5
commit 6ac2bc3
Showing
4 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
changelog/unreleased/000002-request_headers_for_http_connections.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: Added request headers and ability to define it during testing connection using `AbstractHofundBasicHttpConnection` | ||
authors: | ||
- name: Peter Zmilczak | ||
nick: marwin1991 | ||
url: https://github.com/marwin1991 | ||
type: added #[added/changed/deprecated/removed/fixed/security/other] | ||
merge_requests: | ||
- 45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
hofund-core/src/main/java/dev/logchange/hofund/connection/RequestHeader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package dev.logchange.hofund.connection; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class RequestHeader { | ||
private final String name; | ||
private final String value; | ||
|
||
public static RequestHeader of(String name, String value) { | ||
return new RequestHeader(name, value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters