Skip to content

Commit

Permalink
Merge pull request #4 from kopylovvlad/feature/new_notes
Browse files Browse the repository at this point in the history
Add How to split cookies data in Faraday
  • Loading branch information
kopylovvlad authored Mar 22, 2024
2 parents 51da338 + 5bdb35b commit ab19f59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/ecosystem/009.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# How to split cookies data in Faraday

You can use regular expression

```ruby
response.headers["set-cookie"].split(/, (?=[^;]+=[^;]+;)/)
```

[Source](https://github.com/lostisland/faraday/issues/44#issuecomment-10022856)
1 change: 1 addition & 0 deletions docs/ecosystem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Welcome to Ruby ecosystem page. Please open menu and enjoy.
- [Rspec bisect](ecosystem/006.md)
- [How to test code with threads](ecosystem/007.md)
- [How to match array in Rspec](ecosystem/008.md)
- [How to split cookies data in Faraday](ecosystem/009.md)

0 comments on commit ab19f59

Please sign in to comment.