-
Notifications
You must be signed in to change notification settings - Fork 1.6k
En/http redirects #1640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Umang01-hash
wants to merge
28
commits into
development
Choose a base branch
from
en/http_redirects
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+89
−0
Open
En/http redirects #1640
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
83931e0
add the redirect type and method
Umang01-hash 6ea1efa
resolve linters
Umang01-hash cb505b9
refcator responder.go
Umang01-hash 29d5a9b
Merge branch 'en/http_redirects' of github.com:gofr-dev/gofr into en/…
Umang01-hash 20b8a05
remove extra code
Umang01-hash 53921ee
update documentation
Umang01-hash f8149ae
resolve linters
Umang01-hash ae887cc
Merge branch 'development' into en/http_redirects
Umang01-hash a7a956e
Merge branch 'development' of github.com:gofr-dev/gofr into en/http_r…
Umang01-hash 5cfb815
Merge branch 'en/http_redirects' of github.com:gofr-dev/gofr into en/…
Umang01-hash 893b18f
remove status code as a field in redirect type
Umang01-hash b64fb20
Merge branch 'development' of github.com:gofr-dev/gofr into en/http_r…
Umang01-hash 1399452
fix tests
Umang01-hash 535d760
remove Redirect method from context
Umang01-hash b770535
improve docs
Umang01-hash 70318b9
resolve review comments
Umang01-hash 1d426f9
Merge branch 'development' into en/http_redirects
Umang01-hash eeec99a
remove pointer return type from NewRedirect
Umang01-hash 4edb668
Merge branch 'development' of github.com:gofr-dev/gofr into en/http_r…
Umang01-hash fc05212
Merge branch 'development' into en/http_redirects
Umang01-hash 1e6a52d
Merge branch 'development' into en/http_redirects
Umang01-hash bc2293f
Merge branch 'development' into en/http_redirects
aryanmehrotra ffe4a9b
Merge branch 'development' into en/http_redirects
Umang01-hash 7cd1be3
Merge branch 'en/http_redirects' of github.com:gofr-dev/gofr into en/…
Umang01-hash 565e8ae
Merge branch 'development' of github.com:gofr-dev/gofr into en/http_r…
Umang01-hash 43ef4ac
Merge branch 'development' into en/http_redirects
Umang01-hash 9315e98
resolve review comments
Umang01-hash e6916ba
Merge branch 'en/http_redirects' of github.com:gofr-dev/gofr into en/…
Umang01-hash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,12 @@ | ||
package response | ||
|
||
type Redirect struct { | ||
URL string | ||
} | ||
|
||
// NewRedirect creates a redirect response with the specified URL and status code. | ||
func NewRedirect(url string) Redirect { | ||
return Redirect{ | ||
URL: url, | ||
} | ||
} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed.