Skip to content

Commit cdfd0e0

Browse files
committed
Update README
1 parent 4a96500 commit cdfd0e0

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

README.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,10 @@ more languages' examples you can find [here](https://github.com/gitx-io/ActionSe
3939
| Elixir | ⬜️ not supported yet |
4040
| PHP | ⬜️ not supported yet |
4141

42-
## HTTP Headers
43-
44-
If we'd like to be serious to take visiting such a GitHub raw file as a 'service', it's no problem for most situations as you request a normal HTTP service. But GitHub returns a `text/html` for any raw files it serves, that might lead to some bugs though I can't give an example yet.
45-
46-
So we provide a header rewrite service, which returns an `application/json` header for the `json` format files(those generated file suffixed with `.json`), and a `text/plain` header for the rest(those string or any text-based format files).
47-
48-
### Header rewrite usage
49-
50-
Fox example, here's a raw url of the file:
51-
52-
```
53-
https://raw.githubusercontent.com/gitx-io/ActionServerless/master/README.md
54-
```
55-
56-
its corresponding header-rewritten url should be:
57-
58-
```
59-
https://gitx.io/j/gitx-io/ActionServerless/master/README.md
60-
```
61-
62-
just use `gitx.io/j/` to replace the `raw.githubusercontent.com/` segment.
42+
## Documents
6343

44+
* [Pre-hook script](https://github.com/gitx-io/ActionServerless/wiki/Pre-hook-script)
45+
* [HTTP Headers](https://github.com/gitx-io/ActionServerless/wiki/HTTP-Headers)
6446

6547
## Contributions
6648

0 commit comments

Comments
 (0)