Skip to content

Commit

Permalink
continue work on new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed Jan 20, 2017
1 parent 962fd70 commit 3b51158
Show file tree
Hide file tree
Showing 28 changed files with 5,112 additions and 48 deletions.
5 changes: 5 additions & 0 deletions .request
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
POST /post HTTP/1.1
Content-Length: 7
Host: www.w3.org

a=1&b=2
29 changes: 0 additions & 29 deletions docs/Home.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/Request-rewriting.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Gor supports rewriting of URLs, URL params and headers, see below.

Rewriting may be useful if you test environment does not have the same data as your production, and you want to perform all actions in the context of `test` user: for example rewrite all API tokens to some test value. Other possible use cases are toggling features on/off using custom headers or rewriting URL's if they changed in the new environment.

For more complex logic you can use [[Middleware]].
For more complex logic you can use [Middleware](middleware.md).

#### Rewrite URL based on a mapping
`--http-rewrite-url` expects value in "<search>:<replace>" format: ":" is a dilimiter. In `<replace>` section you may use captured regexp group values. This works similar to `replace` method in Javascript or `gsub` in Ruby.
Expand Down
17 changes: 0 additions & 17 deletions docs/The-Basics.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions docs/css/breadcrumbs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.wy-breadcrumbs li {
display: inline-block;
}

.wy-breadcrumbs li.wy-breadcrumbs-aside {
float: right;
}

.wy-breadcrumbs li a {
display: inline-block;
padding: 5px;
}

.wy-breadcrumbs li a:first-child {
padding-left: 0;
}

.wy-breadcrumbs-extra {
margin-bottom: 0;
color: #b3b3b3;
font-size: 80%;
display: inline-block;
}

@media screen and (max-width: 480px) {
.wy-breadcrumbs-extra {
display: none;
}

.wy-breadcrumbs li.wy-breadcrumbs-aside {
display: none;
}
}

@media print {
.wy-breadcrumbs li.wy-breadcrumbs-aside {
display: none;
}
}
Loading

0 comments on commit 3b51158

Please sign in to comment.